![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BehaviorTreeTypes.h>
Protected Member Functions | |
| void | CleanupNodes (UBehaviorTreeComponent &OwnerComp, UBTCompositeNode &Node, EBTMemoryClear::Type CleanupType) |
data required for instance of single subtree
| FBehaviorTreeInstance::FBehaviorTreeInstance | ( | ) |
| FBehaviorTreeInstance::FBehaviorTreeInstance | ( | const FBehaviorTreeInstance & | Other | ) |
| FBehaviorTreeInstance::FBehaviorTreeInstance | ( | FBehaviorTreeInstance && | Other | ) |
| FBehaviorTreeInstance::FBehaviorTreeInstance | ( | int32 | MemorySize | ) |
| FBehaviorTreeInstance::~FBehaviorTreeInstance | ( | ) |
| void FBehaviorTreeInstance::AddToActiveAuxNodes | ( | UBehaviorTreeComponent & | OwnerComp, |
| UBTAuxiliaryNode * | AuxNode | ||
| ) |
add specified node to the active nodes list
| void FBehaviorTreeInstance::AddToActiveAuxNodes | ( | UBTAuxiliaryNode * | AuxNode | ) |
| void FBehaviorTreeInstance::AddToParallelTasks | ( | FBehaviorTreeParallelTask && | ParallelTask | ) |
add new parallel task
| void FBehaviorTreeInstance::Cleanup | ( | UBehaviorTreeComponent & | OwnerComp, |
| EBTMemoryClear::Type | CleanupType | ||
| ) |
cleanup node instances
|
protected |
worker for updating all nodes
| void FBehaviorTreeInstance::DeactivateNodes | ( | FBehaviorTreeSearchData & | SearchData, |
| uint16 | InstanceIndex | ||
| ) |
deactivate all active aux nodes and remove their requests from SearchData
|
inline |
| void FBehaviorTreeInstance::ExecuteOnEachAuxNode | ( | TFunctionRef< void(const UBTAuxiliaryNode &)> | ExecFunc | ) |
iterate on auxiliary nodes and call ExecFunc on each of them. Nodes can not be added or removed during the iteration
| void FBehaviorTreeInstance::ExecuteOnEachParallelTask | ( | TFunctionRef< void(const FBehaviorTreeParallelTask &, const int32)> | ExecFunc | ) |
iterate on parallel tasks and call ExecFunc on each of them. Supports removing the iterated task while processed
|
inline |
get list of all active auxiliary nodes
|
inline |
|
inline |
get instance memory
|
inline |
get list of all active parallel tasks
check if instance has active node with given execution index
|
inline |
| void FBehaviorTreeInstance::Initialize | ( | UBehaviorTreeComponent & | OwnerComp, |
| UBTCompositeNode & | Node, | ||
| int32 & | InstancedIndex, | ||
| EBTMemoryInit::Type | InitType | ||
| ) |
initialize memory and create node instances
indicates if the provided index is a valid parallel task index
mark parallel task at given index as pending abort
|
default |
| FBehaviorTreeInstance & FBehaviorTreeInstance::operator= | ( | FBehaviorTreeInstance && | Other | ) |
| void FBehaviorTreeInstance::RemoveFromActiveAuxNodes | ( | UBehaviorTreeComponent & | OwnerComp, |
| UBTAuxiliaryNode * | AuxNode | ||
| ) |
remove specified node from the active nodes list
| void FBehaviorTreeInstance::RemoveFromActiveAuxNodes | ( | UBTAuxiliaryNode * | AuxNode | ) |
remove parallel task at given index
| void FBehaviorTreeInstance::ResetActiveAuxNodes | ( | ) |
remove all auxiliary nodes from active nodes list
| TArray<TObjectPtr<UBTAuxiliaryNode> > FBehaviorTreeInstance::ActiveAuxNodes |
active auxiliary nodes
| TObjectPtr<UBTNode> FBehaviorTreeInstance::ActiveNode |
active node in template
| TEnumAsByte<EBTActiveNode::Type> FBehaviorTreeInstance::ActiveNodeType |
active node type
| FBTInstanceDeactivation FBehaviorTreeInstance::DeactivationNotify |
delegate sending a notify when tree instance is removed from active stack
| uint8 FBehaviorTreeInstance::InstanceIdIndex |
index of identifier (BehaviorTreeComponent.KnownInstances)
| TArray<FBehaviorTreeParallelTask> FBehaviorTreeInstance::ParallelTasks |
active parallel tasks
| TObjectPtr<UBTCompositeNode> FBehaviorTreeInstance::RootNode |
root node in template