To follow this tutorial directly, first create a new Unity project (requires 2019.4.14f1+ LTS for included scene) and import the latest uNode. Only after that, and restarting Unity, then extract these files into that projects directory: https://drive.google.com/file/d/1BbrAV6JSKQ_pAa4A4-DB6IJ4RRa86Thi/view?usp=sharing
Then open the ‘GameplayScene’ included in the Scenes directory.
— Theme note:
This is recorded with a custom theme (included, based on ‘DarkGray’) ‘CompactDark’ you can choose in preferences, and change the type colors to match with the eye dropper and colors in the CompactDarkTheme Directory. You can use any theme, however you may need to lay out your graph/nodes differently.
— Shortcuts help:
* In this video I frequently use ctrl+D to duplicate selected graphs.
* Shift+alt+holding left click to drag across a flow to cut it.
* I move nodes and nodes lower in their flow by holding ctrl before clicking and dragging them, with ‘Carry’ at the bottom left of the uNode editor window toggled-you might drag them all by default)
* In-case also, at the end when I’m renaming those embedded macros, I’m double left mouse clicking on their name area at the top right to do that.
— Recommended channel to learn more conceptually about AI/Behavior Trees: https://www.youtube.com/watch?v=6VBCXvfNlCM
00:00 Intro and the goal
00:35 Context, the initial character controller
01:34 Preparing the behavior tree
03:20 Creating the Defensive AI behavior tree
18:20 The Defensive AI in action
19:20 Creating the Aggressive AI (no new BT concepts here, optional skip)
32:58 Compressing the behavior tree
36:30 Playing the result and conclusion
Unode can be found at – http://maxygames.com/
Source