IBehaviourNode Interface

Summary

A node in a Behaviour Tree.
graph BT Type-.->Interface0["IPolymorphic"] Type["IBehaviourNode"] class Type type-node Implementing0["Selector"]-.->Type click Implementing0 "/platformer/api/PlatformerGameKit.BehaviourTrees/Selector" Implementing1["SetMovementSine"]-.->Type click Implementing1 "/platformer/api/PlatformerGameKit.BehaviourTrees/SetMovementSine" Implementing2["Wait"]-.->Type click Implementing2 "/platformer/api/PlatformerGameKit.BehaviourTrees/Wait" Implementing3["ConditionNode"]-.->Type click Implementing3 "/platformer/api/PlatformerGameKit.BehaviourTrees/ConditionNode" Implementing4["IsGroundInFront"]-.->Type click Implementing4 "/platformer/api/PlatformerGameKit.BehaviourTrees/IsGroundInFront" Implementing5["FaceAttacker"]-.->Type click Implementing5 "/platformer/api/PlatformerGameKit.BehaviourTrees/FaceAttacker" Implementing6["FuncNode"]-.->Type click Implementing6 "/platformer/api/PlatformerGameKit.BehaviourTrees/FuncNode" Implementing7["IsEnemyInFront"]-.->Type click Implementing7 "/platformer/api/PlatformerGameKit.BehaviourTrees/IsEnemyInFront" Implementing8["IsIdle"]-.->Type click Implementing8 "/platformer/api/PlatformerGameKit.BehaviourTrees/IsIdle" Implementing9["ActionNode"]-.->Type click Implementing9 "/platformer/api/PlatformerGameKit.BehaviourTrees/ActionNode" Implementing10["GroupNode"]-.->Type click Implementing10 "/platformer/api/PlatformerGameKit.BehaviourTrees/GroupNode" Implementing11["TrySetState"]-.->Type click Implementing11 "/platformer/api/PlatformerGameKit.BehaviourTrees/TrySetState" Implementing12["Sequence"]-.->Type click Implementing12 "/platformer/api/PlatformerGameKit.BehaviourTrees/Sequence" Implementing13["TurnAround"]-.->Type click Implementing13 "/platformer/api/PlatformerGameKit.BehaviourTrees/TurnAround" Implementing14["SetMovementForward"]-.->Type click Implementing14 "/platformer/api/PlatformerGameKit.BehaviourTrees/SetMovementForward" Implementing15["LeafNode"]-.->Type click Implementing15 "/platformer/api/PlatformerGameKit.BehaviourTrees/LeafNode" Implementing16["Invert"]-.->Type click Implementing16 "/platformer/api/PlatformerGameKit.BehaviourTrees/Invert" Implementing17["IsWallInFront"]-.->Type click Implementing17 "/platformer/api/PlatformerGameKit.BehaviourTrees/IsWallInFront" Implementing18["ModifierNode"]-.->Type click Implementing18 "/platformer/api/PlatformerGameKit.BehaviourTrees/ModifierNode" Implementing19["Ignore"]-.->Type click Implementing19 "/platformer/api/PlatformerGameKit.BehaviourTrees/Ignore" Implementing20["UnityEventNode"]-.->Type click Implementing20 "/platformer/api/PlatformerGameKit.BehaviourTrees/UnityEventNode"

Syntax

public interface IBehaviourNode : IPolymorphic

Remarks

Documentation: Behaviour Tree Brains - Core Concept

Properties

Name Value Summary
ChildCount int
The number of children this node has.

Methods

Name Value Summary
Execute() Result
Runs this node's main logic.
GetChild(int) IBehaviourNode
Gets the child node at the specified `index`.

Extension Methods

Name Value Summary
GetChildren() List<IBehaviourNode>
Returns a list containing the `node` and all of its children (recursively).
GetChildren(List<IBehaviourNode>) void
Adds the `node` and all of its children to the `list` (recursively).