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