Data asset with parameters and behaviour trees.
More...
Inherits ScriptableObject.
Data asset with parameters and behaviour trees.
AiBehaviour collects parameters in key-value manner. AiBehaviour is similar to Unity's Animator. It handles not only parameters, but also bevahiour trees. Single AiBehaviour has a blackboard and can have multiple trees.
bool lab.AiBehaviour.AddTree |
( |
AiTree |
tree | ) |
|
Adds new behaviour tree to this blackboard.
- Parameters
-
tree | New behaviour tree for current blackboard. |
- Returns
- True if new tree was added. Otherwise false.
bool lab.AiBehaviour.RemoveTree |
( |
AiTree |
tree | ) |
|
Removes behaviour tree from this blackboard.
- Parameters
-
tree | Tree to remove from current blackboard. |
- Returns
- True if tree was removed. Otherwise false.
IList<AiTree> lab.AiBehaviour.Trees |
|
get |
Gets readonly list of all behaviour trees assigned to this AiBehaviour.
The documentation for this class was generated from the following file:
- lab/Assets/lab/Scripts/AiBehaviour.cs