UBTDecorator_Loop

Loop decorator node.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AIModule

Header

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

Include

#include "BehaviorTree/Decorators/BTDecorator_Loop.h"

Syntax

class UBTDecorator_Loop : public UBTDecorator

Remarks

Loop decorator node. A decorator node that bases its condition on whether its loop counter has been exceeded.

Variables

Name Description

Public variable

bool

 

bInfiniteLoop

Infinite loop

Public variable

float

 

InfiniteLoopTimeoutTime

Timeout (when looping infinitely, when we finish a loop we will check whether we have spent this time looping, if we have we will stop looping).

Public variable

int32

 

NumLoops

Number of executions

Constructors

Name Description

Public function

UBTDecorator_Loop

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UBTDecorator

Name Description

Protected function Virtual

void

 

OnNodeActivation

(
    FBehaviorTreeSearchData& SearchDat...
)

Called when underlying node is activated 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()

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