Auxiliary nodes are supporting nodes, that receive notification about execution flow and can be ticked
更多...
|
|
float | GetNextTickRemainingTime (uint8 *NodeMemory) const |
| | gets remaining time for next tick
|
| |
|
virtual void | OnBecomeRelevant (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) |
| | called when auxiliary node becomes active this function should be considered as const (don't modify state of object) if node is not instanced!
|
| |
|
virtual void | OnCeaseRelevant (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory) |
| | called when auxiliary node becomes inactive this function should be considered as const (don't modify state of object) if node is not instanced!
|
| |
|
void | SetNextTickTime (uint8 *NodeMemory, float RemainingTime) const |
| | sets next tick time
|
| |
|
virtual void | TickNode (UBehaviorTreeComponent &OwnerComp, uint8 *NodeMemory, float DeltaSeconds) |
| | tick function this function should be considered as const (don't modify state of object) if node is not instanced!
|
| |
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() )