UBTComposite_SimpleParallel

Simple Parallel composite node.

Windows
MacOS
Linux

Inheritance Hierarchy

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

Name Description

Public variable

TEnumAsByte< EB...

 

FinishMode

How background tree should be handled when main task finishes execution

Constructors

Name Description

Public function

UBTComposite_SimpleParallel

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

FString

 

DescribeFinishMode

(
    EBTParallelMode::Type Mode
)

Helper for showing values of EBTParallelMode enum

Overridden from UBTCompositeNode

Name Description

Public function Virtual Const

bool

 

CanAbortLowerPriority()

Public function Virtual Const

bool

 

CanAbortSelf()

Public function Virtual Const

bool

 

CanNotifyDecoratorsOnDeactivation

(
    FBehaviorTreeSearchData& SearchDat...,
    int32 ChildIdx,
    EBTNodeResult::Type& NodeResult
)

Check if NotifyDecoratorsOnDeactivation is allowed, requires bUseDecoratorsDeactivationCheck flag

Public function Virtual Const

bool

 

CanPushSubtree

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory,
    int32 ChildIdx
)

Check if child node can execute new subtree

Public function Virtual Const

int32

 

GetNextChildHandler

(
    FBehaviorTreeSearchData& SearchDat...,
    int32 PrevChild,
    EBTNodeResult::Type LastResult
)

Handle child updates

Public function Virtual Const

void

 

NotifyChildExecution

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory,
    int32 ChildIdx,
    EBTNodeResult::Type& NodeResult
)

Called just after child execution, allows to modify result

Public function Virtual Const

void

 

NotifyNodeDeactivation

(
    FBehaviorTreeSearchData& SearchDat...,
    EBTNodeResult::Type& NodeResult
)

Called when start leaves this node

Public function Virtual Const

void

 

SetChildOverride

(
    FBehaviorTreeSearchData& SearchDat...,
    int8 Index
)

Set override for next child index

Overridden from UBTNode

Name Description

Public function Virtual Const

void

 

DescribeRuntimeValues

(
    const UBehaviorTreeComponent& Owne...,
    uint8* NodeMemory,
    EBTDescriptionVerbosity::Type Verbo...,
    TArray< FString >& Values
)

Gathers description of all runtime parameters

Public function Virtual Const

uint16

 

GetInstanceMemorySize()

Size of instance memory

Public function Virtual Const

FName

 

GetNodeIconName()

Get the name of the icon used to display this node in the editor

Public function Virtual Const

FString

 

GetStaticDescription()

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback