Navigation
API > API/Runtime > API/Runtime/AIModule
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.
| Name | UBTDecorator_ConeCheck |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
| Include Path | #include "BehaviorTree/Decorators/BTDecorator_ConeCheck.h" |
Syntax
UCLASS (MinimalAPI)
class UBTDecorator_ConeCheck : public UBTDecorator
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBTNode → UBTAuxiliaryNode → UBTDecorator → UBTDecorator_ConeCheck
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBTDecorator_ConeCheck
(
const FObjectInitializer& ObjectInitializer |
BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TNodeInstanceMemory | FBTConeCheckDecoratorMemory | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ConeDirection | FBlackboardKeySelector | "None" means "use ConeOrigin's direction" | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
|
| ConeHalfAngle | FValueOrBBKey_Float | Angle between cone direction and code cone edge, or a half of the total cone angle | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
|
| ConeOrigin | FBlackboardKeySelector | Blackboard key selector | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
|
| Observed | FBlackboardKeySelector | Blackboard key selector | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
|
Functions
Public
Overridden from UBTNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CleanupMemory
(
UBehaviorTreeComponent& OwnerComp, |
Cleanup memory block. CleanupNodeMemory template function is provided to help cleanup the memory. | BehaviorTree/Decorators/BTDecorator_ConeCheck.h | |
virtual void DescribeRuntimeValues
(
const UBehaviorTreeComponent& OwnerComp, |
Gathers description of all runtime parameters | BehaviorTree/Decorators/BTDecorator_ConeCheck.h | |
virtual FString GetErrorMessage() |
Validates this node and returns the resulting error message. Empty means no error. | BehaviorTree/Decorators/BTDecorator_ConeCheck.h | |
virtual uint16 GetInstanceMemorySize() |
Size of instance memory | BehaviorTree/Decorators/BTDecorator_ConeCheck.h | |
virtual FName GetNodeIconName() |
Get the name of the icon used to display this node in the editor | BehaviorTree/Decorators/BTDecorator_ConeCheck.h | |
virtual FString GetStaticDescription() |
BehaviorTree/Decorators/BTDecorator_ConeCheck.h | ||
virtual void InitializeFromAsset
(
UBehaviorTree& Asset |
Initialize any asset related data | BehaviorTree/Decorators/BTDecorator_ConeCheck.h | |
virtual void InitializeMemory
(
UBehaviorTreeComponent& OwnerComp, |
Initialize memory block. | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CalculateDirection
(
const UBlackboardComponent* BlackboardComp, |
BehaviorTree/Decorators/BTDecorator_ConeCheck.h | ||
float GetConeHalfAngleDot
(
const UBehaviorTreeComponent& OwnerComp |
BehaviorTree/Decorators/BTDecorator_ConeCheck.h | ||
void OnBlackboardChange
(
const UBlackboardComponent& Blackboard, |
BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
Overridden from UBTDecorator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CalculateRawConditionValue
(
UBehaviorTreeComponent& OwnerComp, |
Calculates raw, core value of decorator's condition. Should not include calling IsInversed | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |
Overridden from UBTAuxiliaryNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual 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! | BehaviorTree/Decorators/BTDecorator_ConeCheck.h | |
virtual void TickNode
(
UBehaviorTreeComponent& OwnerComp, |
Tick function this function should be considered as const (don't modify state of object) if node is not instanced! | BehaviorTree/Decorators/BTDecorator_ConeCheck.h |