Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/BehaviorTree > API/Runtime/AIModule/BehaviorTree/UBehaviorTreeComponent > API/Runtime/AIModule/BehaviorTree/UBehaviorTreeComponent/SetDynamicSubtree
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BehaviorTreeComponent.h |
| Include | #include "BehaviorTree/BehaviorTreeComponent.h" |
| Source | /Engine/Source/Runtime/AIModule/Private/BehaviorTree/BehaviorTreeComponent.cpp |
virtual void SetDynamicSubtree
(
FGameplayTag InjectTag,
UBehaviorTree * BehaviorAsset,
UBTCompositeNode * OptionalStartingNode
)
Remarks
Assign subtree to RunBehaviorDynamic task specified by tag. Optional Starting Node can be given if the location in the tree is known to avoid parsing the whole tree.