Behavior Tree plugin for Unity

A plugin for Unity that facilitates the development of artificial intelligence for games. It features a powerful editor extension that allows the creation of behavior trees through visual scripting, by dragging and dropping nodes and linking them together. It’s easy to extend for each game’s specifics needs and quite performant since each behavior tree can have its own refresh rate, which can run at much lower frequencies than the main game loop.

It also features a blackboard, where shared variables can be defined and their values queried and modified during runtime, enabling communication between nodes, resulting in self-contained and reusable nodes that can create complex behaviors for your actors.

The editor displays nodes in execution, their progress and also uses color coding to make it easier to debug the tree. It’s also possible to manually edit blackboard variables values to force specific branches of your tree and see how it would behave in hard-to-replicate contexts.

Check the video for an example of the plugin in action.

Version 2

Working every now and then on porting the plugin to the new retained UI mode, UI Toolkit (UI Elements), and GraphNode which has been quite an enjoyable experience so far!