Skip to content
Cristian Geambasu edited this page Jul 8, 2016 · 4 revisions

Introduction

Brainiac is a behaviour tree implementation for Unity3D that features an intuitive, node-based visual editor.

A behaviour tree is a tree of hierarchical nodes that control the flow of decision making of an AI entity. At the extents of the tree are the actual commands that control the AI entity, and forming the branches are various types of utility nodes that control the AI’s walk down the trees to reach the sequences of commands best suited to the situation.

You can find more information about behaviour trees here.

Importing the plugin

  • Download or clone the repository. The repository contains a Unity project with the plugin.
  • Open the Unity project, in the Project Panel select the folder named Brainiac, right-click on it and select Export Package.
  • Open your game project in Unity and drag the package you just exported to the Project Panel to import it.

Creating your first behaviour tree

  • To create a behaviour tree, right-click in the Project Panel and select Create/Brainiac/Behaviour Tree.
  • To open the behaviour tree, double-click the asset or select the asset and press "Open In Editor" in the inspector.

See Also: Behaviour Tree, Behaviour Tree Editor, AI Agent, Scripting