FBehaviorTreeInstance

Data required for instance of single subtree

Windows
MacOS
Linux

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BehaviorTreeTypes.h

Include

#include "BehaviorTree/BehaviorTreeTypes.h"

Syntax

struct FBehaviorTreeInstance

Remarks

Data required for instance of single subtree

Variables

Name Description

Public variable

TArray< UBTAuxi...

 

ActiveAuxNodes

Active auxiliary nodes

Public variable

UBTNode *

 

ActiveNode

Active node in template

Public variable

TEnumAsByte< EB...

 

ActiveNodeType

Active node type

Public variable

FBTInstanceDeac...

 

DeactivationNotify

Delegate sending a notify when tree instance is removed from active stack

Public variable

uint8

 

InstanceIdIndex

Index of identifier (BehaviorTreeComponent.KnownInstances)

Public variable

TArray< uint8 >

 

InstanceMemory

Memory: instance

Public variable

TArray< FBehavi...

 

ParallelTasks

Active parallel tasks

Public variable

UBTCompositeNod...

 

RootNode

Root node in template

Constructors

Name Description

Public function

FBehaviorTreeInstance()

Public function

FBehaviorTreeInstance

(
    const FBehaviorTreeInstance& Other
)

Public function

FBehaviorTreeInstance

(
    int32 MemorySize
)

Destructors

Name Description

Public function

~FBehaviorTreeInstance()

Functions

Name Description

Public function

void

 

Cleanup

(
    UBehaviorTreeComponent& OwnerComp,
    EBTMemoryClear::Type CleanupType
)

Cleanup node instances

Protected function

void

 

CleanupNodes

(
    UBehaviorTreeComponent& OwnerComp,
    UBTCompositeNode& Node,
    EBTMemoryClear::Type CleanupType
)

Worker for updating all nodes

Public function

void

 

DeactivateNodes

(
    FBehaviorTreeSearchData& SearchDat...,
    uint16 InstanceIndex
)

Deactivate all active aux nodes and remove their requests from SearchData

Public function

void

 

DecMemoryStats()

Public function Const

uint32

 

GetAllocatedSize()

Public function Const

bool

 

HasActiveNode

(
    uint16 TestExecutionIndex
)

Check if instance has active node with given execution index

Public function

void

 

IncMemoryStats()

Public function

void

 

Initialize

(
    UBehaviorTreeComponent& OwnerComp,
    UBTCompositeNode& Node,
    int32& InstancedIndex,
    EBTMemoryInit::Type InitType
)

Initialize memory and create node instances

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss