Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/BehaviorTree > API/Runtime/AIModule/BehaviorTree/Composites
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBTNode
- UBTCompositeNode
- UBTComposite_SimpleParallel
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Composites/BTComposite_SimpleParallel.h |
| Include | #include "BehaviorTree/Composites/BTComposite_SimpleParallel.h" |
Syntax
class UBTComposite_SimpleParallel : public UBTCompositeNode
Remarks
Simple Parallel composite node. Allows for running two children: one which must be a single task node (with optional decorators), and the other of which can be a complete subtree.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< EBTParallelMode::Type > | FinishMode | How background tree should be handled when main task finishes execution |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UBTComposite_SimpleParallel
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FString | DescribeFinishMode
(
EBTParallelMode::Type Mode |
Helper for showing values of EBTParallelMode enum |
Overridden from UBTCompositeNode
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| bool | CanAbortSelf () |
||
| bool | CanNotifyDecoratorsOnDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Check if NotifyDecoratorsOnDeactivation is allowed, requires bUseDecoratorsDeactivationCheck flag bUseDecoratorsDeactivationCheck must be set to true for this function to be called Calling INIT_COMPOSITE_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically | |
| bool | CanPushSubtree
(
UBehaviorTreeComponent& OwnerComp, |
Check if child node can execute new subtree | |
| int32 | GetNextChildHandler
(
FBehaviorTreeSearchData& SearchData, |
Handle child updates | |
| void | NotifyChildExecution
(
UBehaviorTreeComponent& OwnerComp, |
Called just after child execution, allows to modify result bUseChildExecutionNotify must be set to true for this function to be called Calling INIT_COMPOSITE_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically | |
| void | NotifyNodeDeactivation
(
FBehaviorTreeSearchData& SearchData, |
Called when start leaves this node bUseNodeDeactivationNotify must be set to true for this function to be called Calling INIT_COMPOSITE_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically | |
| void | SetChildOverride
(
FBehaviorTreeSearchData& SearchData, |
Set override for next child index |
Overridden from UBTNode
| Type | Name | Description | |
|---|---|---|---|
| void | DescribeRuntimeValues
(
const UBehaviorTreeComponent& OwnerComp, |
Gathers description of all runtime parameters | |
| uint16 | Size of instance memory | ||
| FName | Get the name of the icon used to display this node in the editor | ||
| FString |