FBehaviorTreeSearchData

Node search data

Windows
MacOS
Linux

References

Module

AIModule

Header

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

Include

#include "BehaviorTree/BehaviorTreeTypes.h"

Syntax

struct FBehaviorTreeSearchData

Remarks

Node search data

Variables

Name Description

Public variable

uint32: 1

 

bPostponeSearch

If set, current search will be restarted in next tick

Public variable

uint32: 1

 

bPreserveActiveNodeMemoryOnRollback

If set, active node state/memory won't be rolled back

Public variable

uint32: 1

 

bSearchInProgress

Set when task search is in progress

Public variable

UBehaviorTreeCo...

 

OwnerComp

BT component

Public variable

TArray< FBehavi...

 

PendingNotifies

Notifies for tree instances

Public variable

TArray< FBehavi...

 

PendingUpdates

Requested updates of additional nodes (preconditions, services, parallels) buffered during search to prevent instant add & remove pairs

Public variable

int32

 

RollbackInstanceIdx

Active instance index to rollback to

Public variable

FBTNodeIndex

 

SearchEnd

Last node allowed in search

Public variable

int32

 

SearchId

Search unique number

Public variable

FBTNodeIndex

 

SearchStart

First node allowed in search

Constructors

Name Description

Public function

FBehaviorTreeSearchData

(
    UBehaviorTreeComponent& InOwnerCom...
)

Functions

Name Description

Public function

void

 

AddUniqueUpdate

(
    const FBehaviorTreeSearchUpdate& U...
)

Adds update info to PendingUpdates array, removing all previous updates for this node

Public function

void

 

AssignSearchId()

Assign unique Id number

Public function

void

 

Reset()

Clear state of search

Constants

Name

Description

NextSearchId

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