Navigation
API > API/Runtime > API/Runtime/AIModule
| Name | UBTCompositeNode |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BTCompositeNode.h |
| Include Path | #include "BehaviorTree/BTCompositeNode.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UBTCompositeNode : public UBTNode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBTNode → UBTCompositeNode
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBTCompositeNode
(
const FObjectInitializer& ObjectInitializer |
BehaviorTree/BTCompositeNode.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~UBTCompositeNode() |
BehaviorTree/BTCompositeNode.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Children | TArray< FBTCompositeChild > | Child nodes | BehaviorTree/BTCompositeNode.h | |
| Services | TArray< TObjectPtr< UBTService > > | Service nodes | BehaviorTree/BTCompositeNode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAbortLowerPriority() |
BehaviorTree/BTCompositeNode.h | ||
virtual bool CanAbortSelf() |
BehaviorTree/BTCompositeNode.h | ||
virtual bool CanPushSubtree
(
UBehaviorTreeComponent& OwnerComp, |
Check if child node can execute new subtree | BehaviorTree/BTCompositeNode.h | |
void ConditionalNotifyChildExecution
(
UBehaviorTreeComponent& OwnerComp, |
Notify about task execution start | BehaviorTree/BTCompositeNode.h | |
bool DoDecoratorsAllowExecution
(
UBehaviorTreeComponent& OwnerComp, |
Is child execution allowed by decorators? | BehaviorTree/BTCompositeNode.h | |
int32 FindChildToExecute
(
FBehaviorTreeSearchData& SearchData, |
Find next child branch to execute | BehaviorTree/BTCompositeNode.h | |
uint16 GetBranchExecutionIndex
(
uint16 NodeInBranchIdx |
Get first execution index of given branch | BehaviorTree/BTCompositeNode.h | |
uint16 GetChildExecutionIndex
(
int32 Index, |
BehaviorTree/BTCompositeNode.h | ||
int32 GetChildIndex
(
FBehaviorTreeSearchData& SearchData, |
Get index of child node (handle subtrees) | BehaviorTree/BTCompositeNode.h | |
int32 GetChildIndex
(
const UBTNode& ChildNode |
Get index of child node | BehaviorTree/BTCompositeNode.h | |
UBTNode * GetChildNode
(
int32 Index |
BehaviorTree/BTCompositeNode.h | ||
int32 GetChildrenNum() |
BehaviorTree/BTCompositeNode.h | ||
uint16 GetLastExecutionIndex() |
BehaviorTree/BTCompositeNode.h | ||
int32 GetMatchingChildIndex
(
int32 ActiveInstanceIdx, |
Find branch containing specified node index | BehaviorTree/BTCompositeNode.h | |
void InitializeComposite
(
uint16 InLastExecutionIndex |
Fill in data about tree structure | BehaviorTree/BTCompositeNode.h | |
bool IsApplyingDecoratorScope() |
BehaviorTree/BTCompositeNode.h | ||
void OnChildActivation
(
FBehaviorTreeSearchData& SearchData, |
BehaviorTree/BTCompositeNode.h | ||
void OnChildActivation
(
FBehaviorTreeSearchData& SearchData, |
Called before passing search to child node | BehaviorTree/BTCompositeNode.h | |
void OnChildDeactivation
(
FBehaviorTreeSearchData& SearchData, |
BehaviorTree/BTCompositeNode.h | ||
void OnChildDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Deprecated methods | BehaviorTree/BTCompositeNode.h | |
void OnChildDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Notification called after child has finished search | BehaviorTree/BTCompositeNode.h | |
void OnChildDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Notification called after child has finished search | BehaviorTree/BTCompositeNode.h | |
void OnNodeActivation
(
FBehaviorTreeSearchData& SearchData |
Called when start enters this node | BehaviorTree/BTCompositeNode.h | |
void OnNodeDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Called when search leaves this node | BehaviorTree/BTCompositeNode.h | |
void OnNodeRestart
(
FBehaviorTreeSearchData& SearchData |
Called when search needs to reactivate this node | BehaviorTree/BTCompositeNode.h | |
virtual void SetChildOverride
(
FBehaviorTreeSearchData& SearchData, |
Set override for next child index | BehaviorTree/BTCompositeNode.h |
Overridden from UBTNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CleanupMemory
(
UBehaviorTreeComponent& OwnerComp, |
Cleanup memory block. CleanupNodeMemory template function is provided to help cleanup the memory. | BehaviorTree/BTCompositeNode.h | |
virtual void DescribeRuntimeValues
(
const UBehaviorTreeComponent& OwnerComp, |
Gathers description of all runtime parameters | BehaviorTree/BTCompositeNode.h | |
virtual uint16 GetInstanceMemorySize() |
Size of instance memory | BehaviorTree/BTCompositeNode.h | |
virtual void InitializeMemory
(
UBehaviorTreeComponent& OwnerComp, |
Initialize memory block. | BehaviorTree/BTCompositeNode.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanNotifyDecoratorsOnActivation
(
FBehaviorTreeSearchData& SearchData, |
Check if NotifyDecoratorsOnActivation is allowed, requires bUseDecoratorsActivationCheck flag bUseDecoratorsActivationCheck must be set to true for this function to be called | BehaviorTree/BTCompositeNode.h | |
virtual bool CanNotifyDecoratorsOnDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Check if NotifyDecoratorsOnDeactivation is allowed, requires bUseDecoratorsDeactivationCheck flag | BehaviorTree/BTCompositeNode.h | |
virtual bool CanNotifyDecoratorsOnFailedActivation
(
FBehaviorTreeSearchData& SearchData, |
Check if NotifyDecoratorsOnFailedActivation is allowed, requires bUseDecoratorsActivationCheck flag | BehaviorTree/BTCompositeNode.h | |
int32 GetNextChild
(
FBehaviorTreeSearchData& SearchData, |
Get next child to process and store it in CurrentChild | BehaviorTree/BTCompositeNode.h | |
virtual int32 GetNextChildHandler
(
FBehaviorTreeSearchData& SearchData, |
BehaviorTree/BTCompositeNode.h | ||
| BehaviorTree/BTCompositeNode.h | |||
virtual void NotifyChildExecution
(
UBehaviorTreeComponent& OwnerComp, |
Called just after child execution, allows to modify result | BehaviorTree/BTCompositeNode.h | |
void NotifyDecoratorsOnActivation
(
FBehaviorTreeSearchData& SearchData, |
Runs through decorators on given child node and notify them about activation | BehaviorTree/BTCompositeNode.h | |
void NotifyDecoratorsOnDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Runs through decorators on given child node and notify them about deactivation | BehaviorTree/BTCompositeNode.h | |
void NotifyDecoratorsOnFailedActivation
(
FBehaviorTreeSearchData& SearchData, |
Runs through decorators on given child node and notify them about failed activation | BehaviorTree/BTCompositeNode.h | |
virtual void NotifyNodeActivation
(
FBehaviorTreeSearchData& SearchData |
Called when start enters this node | BehaviorTree/BTCompositeNode.h | |
virtual void NotifyNodeDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Called when start leaves this node bUseNodeDeactivationNotify must be set to true for this function to be called | BehaviorTree/BTCompositeNode.h | |
void RequestDelayedExecution
(
UBehaviorTreeComponent& OwnerComp, |
Store delayed execution request | BehaviorTree/BTCompositeNode.h |