Behaviour Tree Tool
Created a behaviour tree creation tool in Unity, for a third-year university assignment.
An editor window allows the user to create, modify, save and load simple behaviour trees, and the behaviour trees execute behaviours at runtime.
Creating this tool taught me a lot about creating editor tools in Unity, how behaviour trees function and making a tool that allows users to add custom content.
Editor window
Users can create or remove nodes, and add or remove connections between nodes.
New behaviour classes created by the user will be added to the list as new options for nodes.
Behaviour tree assets can be saved and loaded.
Runtime execution
Runtime objects with a reference to the behaviour tree asset will create an instance of that behaviour tree, which they can then execute at runtime.
The above demonstration shows a number of creatures cycling through the behaviours Move, Attack, and Turn.
All creatures have a reference to the same behaviour tree asset, but are running their own instances at runtime.