Navigation
API > API/Runtime > API/Runtime/AIModule
Keep In Cone decorator node. A decorator node that bases its condition on whether the observed position is still inside a cone. The cone's direction is calculated when the node first becomes relevant.
| Name | UBTDecorator_KeepInCone |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
| Include Path | #include "BehaviorTree/Decorators/BTDecorator_KeepInCone.h" |
Syntax
UCLASS (HideCategories=(Condition), MinimalAPI)
class UBTDecorator_KeepInCone : public UBTDecorator
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBTNode → UBTAuxiliaryNode → UBTDecorator → UBTDecorator_KeepInCone
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBTDecorator_KeepInCone
(
const FObjectInitializer& ObjectInitializer |
BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| TNodeInstanceMemory | FBTKeepInConeDecoratorMemory | BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bUseSelfAsObserved | uint32 | Deprecated, set value of Observed on initialization | BehaviorTree/Decorators/BTDecorator_KeepInCone.h | |
| bUseSelfAsOrigin | uint32 | Deprecated, set value of ConeOrigin on initialization | BehaviorTree/Decorators/BTDecorator_KeepInCone.h | |
| ConeHalfAngle | FValueOrBBKey_Float | Max allowed time for execution of underlying node | BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
|
| ConeOrigin | FBlackboardKeySelector | Blackboard key selector | BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
|
| Observed | FBlackboardKeySelector | Blackboard key selector | BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetConeHalfAngleDot
(
const UBehaviorTreeComponent& OwnerComp |
BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
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_KeepInCone.h | |
virtual void DescribeRuntimeValues
(
const UBehaviorTreeComponent& OwnerComp, |
Gathers description of all runtime parameters | BehaviorTree/Decorators/BTDecorator_KeepInCone.h | |
virtual FString GetErrorMessage() |
Validates this node and returns the resulting error message. Empty means no error. | BehaviorTree/Decorators/BTDecorator_KeepInCone.h | |
virtual uint16 GetInstanceMemorySize() |
Size of instance memory | BehaviorTree/Decorators/BTDecorator_KeepInCone.h | |
virtual FName GetNodeIconName() |
Get the name of the icon used to display this node in the editor | BehaviorTree/Decorators/BTDecorator_KeepInCone.h | |
virtual FString GetStaticDescription() |
BehaviorTree/Decorators/BTDecorator_KeepInCone.h | ||
virtual void InitializeFromAsset
(
UBehaviorTree& Asset |
Initialize any asset related data | BehaviorTree/Decorators/BTDecorator_KeepInCone.h | |
virtual void InitializeMemory
(
UBehaviorTreeComponent& OwnerComp, |
Initialize memory block. | BehaviorTree/Decorators/BTDecorator_KeepInCone.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CalculateCurrentDirection
(
const UBehaviorTreeComponent& OwnerComp, |
BehaviorTree/Decorators/BTDecorator_KeepInCone.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_KeepInCone.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_KeepInCone.h |