Navigation
API > API/Runtime > API/Runtime/AIModule
Node search data
| Name | FBehaviorTreeSearchData |
| Type | struct |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BehaviorTreeTypes.h |
| Include Path | #include "BehaviorTree/BehaviorTreeTypes.h" |
Syntax
struct FBehaviorTreeSearchData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| BehaviorTree/BehaviorTreeTypes.h | |||
FBehaviorTreeSearchData
(
UBehaviorTreeComponent& InOwnerComp |
BehaviorTree/BehaviorTreeTypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NextSearchId | int32 | BehaviorTree/BehaviorTreeTypes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bFilterOutRequestFromDeactivatedBranch | uint32 | If set, execution request from node in the deactivated branch will be skipped | BehaviorTree/BehaviorTreeTypes.h | |
| bPostponeSearch | uint32 | If set, current search will be restarted in next tick | BehaviorTree/BehaviorTreeTypes.h | |
| bPreserveActiveNodeMemoryOnRollback | uint32 | If set, active node state/memory won't be rolled back | BehaviorTree/BehaviorTreeTypes.h | |
| bSearchInProgress | uint32 | Set when task search is in progress | BehaviorTree/BehaviorTreeTypes.h | |
| DeactivatedBranchEnd | FBTNodeIndex | End index of the deactivated branch | BehaviorTree/BehaviorTreeTypes.h | |
| DeactivatedBranchStart | FBTNodeIndex | Start index of the deactivated branch | BehaviorTree/BehaviorTreeTypes.h | |
| OwnerComp | UBehaviorTreeComponent & | BT component | BehaviorTree/BehaviorTreeTypes.h | |
| PendingNotifies | TArray< FBehaviorTreeSearchUpdateNotify > | Notifies for tree instances | BehaviorTree/BehaviorTreeTypes.h | |
| PendingUpdates | TArray< FBehaviorTreeSearchUpdate > | Requested updates of additional nodes (preconditions, services, parallels) buffered during search to prevent instant add & remove pairs | BehaviorTree/BehaviorTreeTypes.h | |
| RollbackDeactivatedBranchEnd | FBTNodeIndex | Saved end index of the deactivated branch for rollback | BehaviorTree/BehaviorTreeTypes.h | |
| RollbackDeactivatedBranchStart | FBTNodeIndex | Saved start index of the deactivated branch for rollback | BehaviorTree/BehaviorTreeTypes.h | |
| RollbackInstanceIdx | int32 | Active instance index to rollback to | BehaviorTree/BehaviorTreeTypes.h | |
| SearchEnd | FBTNodeIndex | Last node allowed in search | BehaviorTree/BehaviorTreeTypes.h | |
| SearchId | int32 | Search unique number | BehaviorTree/BehaviorTreeTypes.h | |
| SearchRootNode | FBTNodeIndex | Node under which the search was performed | BehaviorTree/BehaviorTreeTypes.h | |
| SearchStart | FBTNodeIndex | First node allowed in search | BehaviorTree/BehaviorTreeTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddUniqueUpdate
(
const FBehaviorTreeSearchUpdate& UpdateInfo |
Adds update info to PendingUpdates array, removing all previous updates for this node | BehaviorTree/BehaviorTreeTypes.h | |
void AssignSearchId() |
Assign unique Id number | BehaviorTree/BehaviorTreeTypes.h | |
void Reset() |
Clear state of search | BehaviorTree/BehaviorTreeTypes.h |