UBTService_DefaultFocus

Default Focus service node.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

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

Name Description

Protected variable

uint8

 

FocusPriority

Not exposed to users on purpose. Here to make reusing focus-setting mechanics by derived classes possible

Constructors

Name Description

Protected function

UBTService_DefaultFocus

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function

EBlackboardN...

 

OnBlackboardKeyValueChange

(
    const UBlackboardComponent& Blackb...,
    FBlackboard::FKey ChangedKeyID
)

Overridden from UBTAuxiliaryNode

Name Description

Protected function Virtual

void

 

OnBecomeRelevant

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory
)

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

Protected function Virtual

void

 

OnCeaseRelevant

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory
)

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

Overridden from UBTNode

Name Description

Protected function Virtual Const

uint16

 

GetInstanceMemorySize()

Size of instance memory

Protected function Virtual Const

FName

 

GetNodeIconName()

Get the name of the icon used to display this node in the editor

Protected function Virtual Const

FString

 

GetStaticDescription()