BTSubtree

Inherits: BTNewScope < BTDecorator < BTTask < BT

BT decorator that instantiates and runs a subtree within the larger tree.

Description

BTSubtree instantiates a BehaviorTree and includes its root task as a child during initialization, while also creating a new Blackboard scope.

Returns the status of the subtree’s execution.

Note: BTSubTree is designed as a simpler loader, and does not support updating subtree at runtime. A custom subtree decorator is better suited and somewhat trivial to implement.

Properties

BehaviorTree

subtree


Property Descriptions

BehaviorTree subtree

A BehaviorTree resource that will be instantiated as a subtree.