Create a behavior graph
To create a new behavior graph, perform the following steps:
Right-click an empty area of the Project window.
Select Create > Behavior > Behavior Graph.
Unity Behavior can create the new asset (behavior graph) in either of the following two places:
- The directory you select in the Project window.
- At the top level of the Assets - Project window if you use the menu.
Enter a name for the new behavior graph.
Double-click the new behavior graph to open it in the Unity Behavior editor.
You're now ready to implement the logic of your behavior graph.
To enable the graph to run the appropriate behavior for a given situation, create one of the following nodes:
Unity provides a set of pre-defined nodes. These include:
- General purpose actions
- Event-driven behavior
- Control flow
You can also create your own custom nodes to tailor the behavior of your artificial intelligence (AI) experience to your specific needs.
To continue creating a behavior graph, you can do the following:
- Use pre-defined nodes
- Create your own custom nodes based on your requirements