Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BTAuxiliaryNode.h |
Include |
#include "BehaviorTree/BTAuxiliaryNode.h" |
class UBTAuxiliaryNode : public UBTNode
Auxiliary nodes are supporting nodes, that receive notification about execution flow and can be ticked
Because some of them can be instanced for specific AI, following virtual functions are not marked as const:
OnBecomeRelevant
OnCeaseRelevant
TickNode
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 | ||
---|---|---|---|
|
uint8: 1 |
bNotifyBecomeRelevant |
If set, OnBecomeRelevant will be used |
|
uint8: 1 |
bNotifyCeaseRelevant |
If set, OnCeaseRelevant will be used |
|
uint8: 1 |
bNotifyTick |
If set, OnTick will be used |
|
uint8: 1 |
bTickIntervals |
If set, conditional tick will use remaining time from node's memory |
|
ChildIndex |
Child index in parent node |
Name | Description | |
---|---|---|
|
UBTAuxiliaryNode ( |
Name | Description | ||
---|---|---|---|
|
GetChildIndex() |
||
|
const UBTNod... |
GetMyNode() |
|
|
float |
GetNextNeededDeltaTime ( |
Get The next needed deltatime for this node |
|
float |
GetNextTickRemainingTime ( |
Gets remaining time for next tick |
|
InitializeParentLink ( |
Fill in data about tree structure |
|
|
InitNotifyFlags |
||
|
OnBecomeRelevant ( |
Called when auxiliary node becomes active this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyBecomeRelevant must be set to true for this function to be called Calling INIT_AUXILIARY_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically |
|
|
OnCeaseRelevant ( |
Called when auxiliary node becomes inactive this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyCeaseRelevant must be set to true for this function to be called Calling INIT_AUXILIARY_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically |
|
|
SetNextTickTime ( |
Sets next tick time |
|
|
TickNode ( |
Tick function 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_AUXILIARY_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically |
|
|
WrappedOnBecomeRelevant ( |
Wrapper for node instancing: OnBecomeRelevant |
|
|
WrappedOnCeaseRelevant ( |
Wrapper for node instancing: OnCeaseRelevant |
|
|
WrappedTickNode ( |
Wrapper for node instancing: TickNode |
Name | Description | ||
---|---|---|---|
|
DescribeRuntimeValues ( |
Gathers description of all runtime parameters |
|
|
GetSpecialMemorySize() |
Size of special, hidden memory block for internal mechanics |