UBTDecorator_ConeCheck

Cone check decorator node.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Decorators/BTDecorator_ConeCheck.h

Include

#include "BehaviorTree/Decorators/BTDecorator_ConeCheck.h"

Syntax

class UBTDecorator_ConeCheck : public UBTDecorator

Remarks

Cone check decorator node. A decorator node that bases its condition on a cone check, using Blackboard entries to form the parameters of the check.

Variables

Name Description

Public variable

FBlackboardKeyS...

 

ConeDirection

"None" means "use ConeOrigin's direction"

Public variable

float

 

ConeHalfAngle

Angle between cone direction and code cone edge, or a half of the total cone angle

Public variable

float

 

ConeHalfAngleDot

Public variable

FBlackboardKeyS...

 

ConeOrigin

Blackboard key selector

Public variable

FBlackboardKeyS...

 

Observed

Blackboard key selector

Constructors

Name Description

Public function

UBTDecorator_ConeCheck

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Const

bool

 

CalculateDirection

(
    const UBlackboardComponent* Bl...,
    const FBlackboardKeySelector& Orig...,
    const FBlackboardKeySelector& End,
    FVector& Direction
)

Protected function

void

 

OnBlackboardChange

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

Overridden from UBTDecorator

Name Description

Protected function Virtual Const

bool

 

CalculateRawConditionValue

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory
)

Calculates raw, core value of decorator's condition. Should not include calling IsInversed

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!

Protected function Virtual

void

 

TickNode

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory,
    float DeltaSeconds
)

Tick function this function should be considered as const (don't modify state of object) if node is not instanced!

Overridden from UBTNode

Name Description

Public function Virtual Const

void

 

DescribeRuntimeValues

(
    const UBehaviorTreeComponent& Owne...,
    uint8* NodeMemory,
    EBTDescriptionVerbosity::Type Verbo...,
    TArray< FString >& Values
)

Gathers description of all runtime parameters

Public function Virtual Const

uint16

 

GetInstanceMemorySize()

Size of instance memory

Public function Virtual Const

FName

 

GetNodeIconName()

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

Public function Virtual Const

FString

 

GetStaticDescription()

Public function Virtual

void

 

InitializeFromAsset

(
    UBehaviorTree& Asset
)

Initialize any asset related data

Typedefs

Name

Description

TNodeInstanceMemory

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss