Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BehaviorTreeComponent.h |
Include |
#include "BehaviorTree/BehaviorTreeComponent.h" |
class UBehaviorTreeComponent : public UBrainComponent
Name | Description | ||
---|---|---|---|
|
float |
AccumulatedTickDeltaTime |
Accumulated DeltaTime if ticked more than predicted next delta time |
|
ActiveInstanceIdx |
Index of last active instance on stack |
|
|
uint8: 1 |
bBranchDeactivationSuspended |
If set, all branch deactivation requests will be queued up |
|
uint8: 1 |
bDeferredStopTree |
If set, StopTree will be called at the end of tick |
|
uint8: 1 |
bIsPaused |
If set, execution requests will be postponed |
|
uint8: 1 |
bIsRunning |
If set, tree execution is allowed |
|
uint8: 1 |
bLoopExecution |
Loops tree execution |
|
uint8: 1 |
bRequestedFlowUpdate |
Set when execution update is scheduled for next tick |
|
uint8: 1 |
bRequestedStop |
Set when tree stop was called |
|
bTickedOnce |
Used to tell tickmanager that we want interval ticking |
|
|
uint8: 1 |
bWaitingForLatentAborts |
Set when execution is waiting for tasks to finish their latent abort (current or parallel's main) |
|
CooldownTagsMap |
Behavior cooldowns mapped by tag to last time it was set |
|
|
CurrentRestarts |
||
|
CurrentSearchFlow |
Search flow for debugger |
|
|
DebuggerSteps |
Debugger's recorded data |
|
|
TObjectPtr< UBe... |
DefaultBehaviorTreeAsset |
Data asset defining the tree |
|
ExecutionRequest |
Execution request, search will be performed when current task finish execution/aborting |
|
|
friend |
FBehaviorTreeDebugger |
|
|
friend |
FBehaviorTreeInstance |
|
|
friend |
FScopedBehaviorTreeLock |
|
|
InstanceStack |
Stack of behavior tree instances |
|
|
KnownInstances |
List of known subtree instances |
|
|
float |
LastRequestedDeltaTimeGameTime |
GameTime of the last DeltaTime request, used for debugging to output warnings about ticking |
|
float |
NextTickDeltaTime |
Predicted next DeltaTime |
|
NodeInstances |
Instanced nodes |
|
|
PendingBranchesToDeactivate |
List of all pending branch deactivation requests |
|
|
PendingExecution |
Result of ExecutionRequest, will be applied when current task finish aborting |
|
|
RemovedInstances |
||
|
SearchData |
Search data being currently used |
|
|
SearchStartBlackboard |
||
|
StopTreeLock |
If set, StopTree calls will be deferred |
|
|
TaskMessageObservers |
Message observers mapped by instance & execution index |
|
|
TreeStartInfo |
Stored data for starting new tree, waits until previously running finishes aborting |
|
|
friend |
UBTCompositeNode |
|
|
friend |
UBTNode |
|
|
friend |
UBTTask_RunBehavior |
|
|
friend |
UBTTask_RunBehaviorDynamic |
|
|
friend |
UBTTaskNode |
Name | Description | |
---|---|---|
|
UBehaviorTreeComponent ( |
|
|
UBehaviorTreeComponent ( |
DO NOT USE. This constructor is for internal usage only for hot-reload purposes. |
Name | Description | ||
---|---|---|---|
|
AbortCurrentTask() |
Abort currently executed task |
|
|
AddCooldownTagDuration ( |
Add to the cooldown tag's duration |
|
|
ApplyDiscardedSearch() |
Apply pending node updates required for discarded search |
|
|
ApplySearchData ( |
Apply pending node updates from SearchData |
|
|
ApplySearchUpdates ( |
Apply updates from specific list |
|
|
EBTNodeRelat... |
CalculateRelativePriority |
Return NodeA's relative priority in regards to NodeB |
|
CopyInstanceMemoryFromPersistent() |
Copy memory block from persistent memory to running instances (rollback) |
|
|
CopyInstanceMemoryToPersistent() |
Copy memory block from running instances to persistent memory |
|
|
DeactivateBranch ( |
Deactivate a branch as the decorator condition is not passing anymore |
|
|
DeactivateUpTo ( |
Deactivate all nodes up to requested one |
|
|
DescribeActiveTasks() |
||
|
DescribeActiveTrees() |
||
|
EndFrame() |
Code for timing BT Search for FramePro. |
|
|
ExecuteTask ( |
Execute new task |
|
|
FindInstanceContainingNode ( |
Tries to find behavior tree instance in context |
|
|
UBTTaskNode ... |
FindNextTask ( |
Find next task to execute |
|
UBTNode *... |
FindTemplateNode ( |
Tries to find template node for given instanced node |
|
GetActiveInstanceIdx() |
Get index of active instance on stack |
|
|
const UBTNod... |
GetActiveNode() |
|
|
UBehaviorTre... |
GetCurrentTree() |
|
|
uint8 * |
GetNodeMemory |
|
|
UBehaviorTre... |
GetRootTree() |
|
|
float |
GetTagCooldownEndTime ( |
|
|
EBTTaskStatu... |
GetTaskStatus ( |
|
|
HasActiveLatentAborts() |
Return true if the current or any parallel task has a latent abort in progress |
|
|
IsAbortPending() |
||
|
IsAuxNodeActive ( |
||
|
IsAuxNodeActive ( |
||
|
IsDebuggerActive() |
Check if debugger is currently running and can gather data |
|
|
IsExecutingBranch |
||
|
IsInstanceStackEmpty() |
Returns true if InstanceStack contains any BT runtime instances |
|
|
IsRestartPending() |
||
|
OnTaskFinished ( |
Finish latent execution or abort |
|
|
OnTreeFinished() |
Called when tree runs out of nodes to execute |
|
|
ProcessExecutionRequest() |
Process execution flow |
|
|
ProcessPendingExecution() |
Apply pending execution from last task search |
|
|
ProcessPendingInitialize() |
Apply pending tree initialization |
|
|
PushInstance ( |
Push behavior tree instance on execution stack : should never be called out-side of BT execution, meaning only BT tasks can push another BT instance! |
|
|
RegisterMessageObserver ( |
Setup message observer for given task |
|
|
RegisterMessageObserver ( |
Setup message observer for given task |
|
|
RegisterParallelTask ( |
Add active parallel task |
|
|
RemoveAllInstances() |
Remove instanced nodes, known subtree instances and safely clears their persistent memory |
|
|
RequestBranchDeactivation ( |
Request branch deactivation: helper for decorator |
|
|
RequestExecution ( |
Request execution change: helpers for decorator nodes |
|
|
RequestExecution ( |
Request execution change: helpers for task nodes |
|
|
RequestExecution ( |
Request execution change |
|
|
RestartTree() |
Restarts execution from root |
|
|
ResumeBranchDeactivation() |
Resume branch deactivation and execute all the queued up ones |
|
|
RollbackSearchChanges() |
Restore state of tree to state before search |
|
|
ScheduleExecutionUpdate() |
Schedule execution flow update in next tick |
|
|
ScheduleNextTick ( |
END UActorComponent overrides Schedule when will be the next tick, 0.0f means next frame, FLT_MAX means never |
|
|
SetDynamicSubtree ( |
Assign subtree to RunBehaviorDynamic task specified by tag |
|
|
StartTree ( |
Starts execution from root |
|
|
StopTree ( |
Stops execution |
|
|
StoreDebuggerBlackboard |
Describe blackboard's key values |
|
|
StoreDebuggerExecutionStep ( |
Make a snapshot for debugger |
|
|
StoreDebuggerInstance ( |
Make a snapshot for debugger from given subtree instance |
|
|
StoreDebuggerRemovedInstance ( |
||
|
StoreDebuggerRestart |
Store restarting node for debugger |
|
|
StoreDebuggerRuntimeValues |
Gather nodes runtime descriptions |
|
|
StoreDebuggerSearchStep ( |
Store search step for debugger |
|
|
StoreDebuggerSearchStep |
Store search step for debugger |
|
|
SuspendBranchDeactivation() |
Suspend any branch deactivation and queue them to be processed later by ResumeBranchDeactivation() |
|
|
TrackNewLatentAborts() |
Tracks if there are new tasks using latent abort in progress |
|
|
TrackPendingLatentAborts() |
Returns true if execution was waiting on latent aborts and they are all finished; |
|
|
TreeHasBeenStarted() |
Indicates instance has been initialized to work with specific BT asset |
|
|
UnregisterAuxNodesInBranch ( |
Unregister all aux nodes in branch of tree |
|
|
UnregisterAuxNodesInRange ( |
Unregister all aux nodes between given execution index range: FromIndex < AuxIndex < ToIndex |
|
|
UnregisterAuxNodesUpTo ( |
Unregister all aux nodes less important than given index |
|
|
UnregisterMessageObserversFrom ( |
Remove message observers registered with task |
|
|
UnregisterMessageObserversFrom ( |
Remove message observers registered with task |
|
|
UnregisterParallelTask ( |
Remove parallel task |
|
|
UpdateDebuggerAfterExecution ( |
Update runtime description of given task node in latest debugger's snapshot |
|
|
UpdateInstanceId ( |
Add unique Id of newly created subtree to KnownInstances list and return its index |
Name | Description | ||
---|---|---|---|
|
Cleanup() |
AI logic won't be needed anymore, stop all activity and run cleanup |
|
|
DescribeSelfToVisLog ( |
||
|
GetDebugInfoString() |
||
|
HandleMessage ( |
||
|
IsPaused() |
||
|
IsRunning() |
||
|
PauseLogic ( |
Pause logic and blackboard updates. |
|
|
RestartLogic() |
Restarts currently running or previously ran brain logic. |
|
|
EAILogicResu... |
ResumeLogic ( |
Resumes paused brain logic. MUST be called by child implementations! |
|
StartLogic() |
Starts brain logic. If brain is already running, will not do anything. |
|
|
StopLogic ( |
Stops currently running brain logic. |
Name | Description | ||
---|---|---|---|
|
RegisterComponentTickFunctions ( |
Virtual call chain to register all tick functions |
|
|
SetComponentTickEnabled ( |
Set this component's tick functions to be enabled or disabled. |
|
|
TickComponent ( |
BEGIN UActorComponent overrides |
|
|
UninitializeComponent() |
Handle this component being Uninitialized. |
Name |
Description |
|
---|---|---|
|
FBTSuspendBranchDeactivationScoped |
Name |
Description |
---|---|
ActiveDebuggerCounter |
Set when at least one debugger window is opened |
bAddedEndFrameCallback |
Code for timing BT Search for FramePro. |
FrameSearchTime |
|
NumSearchTimeCalls |
Name | Description | ||
---|---|---|---|
|
RequestUnregisterAuxNodesInBranch ( |
This function is deprecated. Please use RequestBranchDeactivation instead. |