Class BehaviorTreeLoopDecorator
Loops node execution multiple times as long as it doesn't fail. Returns the last iteration result.
Inheritance
System.Object
BehaviorTreeLoopDecorator
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class BehaviorTreeLoopDecorator : BehaviorTreeDecorator, ISerializable
Constructors
BehaviorTreeLoopDecorator()
Initializes a new instance of the BehaviorTreeLoopDecorator.
Declaration
public BehaviorTreeLoopDecorator()
Properties
InfiniteLoop
Is the loop infinite (until failed)?
Declaration
[EditorOrder(10)]
[Unmanaged]
public bool InfiniteLoop { get; set; }
Property Value
System.Boolean
|
LoopCount
Amount of times to execute the node. Unused if LoopCountSelector is used or if InfiniteLoop is used.
Declaration
[EditorOrder(20)]
[Limit(0F, 3.40282347E+38F, 1F)]
[VisibleIf("InfiniteLoop", true)]
[Unmanaged]
public int LoopCount { get; set; }
Property Value
System.Int32
|
LoopCountSelector
Amount of times to execute the node from behavior's knowledge (blackboard, goal or sensor). If set, overrides LoopCount. Unused if InfiniteLoop is used.
Declaration
[EditorOrder(30)]
[VisibleIf("InfiniteLoop", true)]
[Unmanaged]
public BehaviorKnowledgeSelector<int> LoopCountSelector { get; set; }
Property Value
BehaviorKnowledgeSelector<System.Int32>
|