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

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