Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BTTaskNode.h |
Include |
#include "BehaviorTree/BTTaskNode.h" |
class UBTTaskNode : public UBTNode
Task are leaf nodes of behavior tree, which perform actual actions
Because some of them can be instanced for specific AI, following virtual functions are not marked as const:
ExecuteTask
AbortTask
TickTask
OnMessage
If your node is not being instanced (default behavior), DO NOT change any properties of object within those functions! Template nodes are shared across all behavior tree components using the same tree asset and must store their runtime properties in provided NodeMemory block (allocation size determined by GetInstanceMemorySize() )
Name | Description | |
---|---|---|
|
UBTTaskNode ( |
Name | Description | ||
---|---|---|---|
|
EBTNodeResul... |
AbortTask ( |
Aborts this task, should return Aborted or InProgress (use FinishLatentAbort() when returning InProgress) this function should be considered as const (don't modify state of object) if node is not instanced! |
|
EBTNodeResul... |
ExecuteTask ( |
Starts this task, should return Succeeded, Failed or InProgress (use FinishLatentTask() when returning InProgress) this function should be considered as const (don't modify state of object) if node is not instanced! |
|
FinishLatentAbort ( |
Helper function: finishes latent aborting |
|
|
FinishLatentTask ( |
Helper function: finish latent executing |
|
|
InitNotifyFlags |
||
|
OnMessage ( |
Message handler, default implementation will finish latent execution/abortion this function should be considered as const (don't modify state of object) if node is not instanced! |
|
|
OnTaskFinished ( |
Called when task execution is finished this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyTaskFinished must be set to true for this function to be called Calling INIT_TASK_NODE_NOTIFY_FLAGS in the constructor of the task will set this flag automatically |
|
|
ReceivedMessage ( |
Message observer's hook |
|
|
ShouldIgnoreRestartSelf() |
||
|
StopWaitingForMessages ( |
Unregister message observers |
|
|
TickTask ( |
Ticks this task this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyTick must be set to true for this function to be called Calling INIT_TASK_NODE_NOTIFY_FLAGS in the constructor of the task will set this flag automatically |
|
|
WaitForMessage ( |
Register message observer |
|
|
WaitForMessage ( |
Register message observer |
|
|
EBTNodeResul... |
WrappedAbortTask ( |
Wrapper for node instancing: AbortTask |
|
EBTNodeResul... |
WrappedExecuteTask ( |
Wrapper for node instancing: ExecuteTask |
|
WrappedOnTaskFinished ( |
Wrapper for node instancing: OnTaskFinished |
|
|
WrappedTickTask ( |
Wrapper for node instancing: TickTask |
Name | Description | ||
---|---|---|---|
|
GetNodeIconName() |
Get the name of the icon used to display this node in the editor |
Name | Description | ||
---|---|---|---|
|
OnGameplayTaskDeactivated ( |
Notify called after GameplayTask changes state from Active (finishing or pausing) |