Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/BehaviorTree > API/Runtime/AIModule/BehaviorTree/Services
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBTNode
- UBTAuxiliaryNode
- UBTService
- UBTService_BlackboardBase
- UBTService_DefaultFocus
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Services/BTService_DefaultFocus.h |
| Include | #include "BehaviorTree/Services/BTService_DefaultFocus.h" |
Syntax
class UBTService_DefaultFocus : public UBTService_BlackboardBase
Remarks
Default Focus service node. A service node that automatically sets the AI controller's focus when it becomes active.
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint8 | FocusPriority | Not exposed to users on purpose. Here to make reusing focus-setting mechanics by derived classes possible |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UBTService_DefaultFocus
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| EBlackboardNotificationResult | OnBlackboardKeyValueChange
(
const UBlackboardComponent& Blackboard, |
Overridden from UBTAuxiliaryNode
| Type | Name | Description | |
|---|---|---|---|
| void | OnBecomeRelevant
(
UBehaviorTreeComponent& OwnerComp, |
Called when auxiliary node becomes active this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyBecomeRelevant must be set to true for this function to be called Calling INIT_AUXILIARY_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically | |
| void | OnCeaseRelevant
(
UBehaviorTreeComponent& OwnerComp, |
Called when auxiliary node becomes inactive this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyCeaseRelevant must be set to true for this function to be called Calling INIT_AUXILIARY_NODE_NOTIFY_FLAGS in the constructor of the node will set this flag automatically |