Class BehaviorTreeTimeLimitDecorator
Limits maximum duration of the node execution time (in seconds). Node will fail if it runs out of time.
Inheritance
System.Object
BehaviorTreeTimeLimitDecorator
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class BehaviorTreeTimeLimitDecorator : BehaviorTreeDecorator, ISerializable
Constructors
BehaviorTreeTimeLimitDecorator()
Initializes a new instance of the BehaviorTreeTimeLimitDecorator.
Declaration
public BehaviorTreeTimeLimitDecorator()
Properties
MaxDuration
Maximum node execution time (in seconds). Unused if MaxDurationSelector is used.
Declaration
[EditorOrder(10)]
[Limit(0F, 3.40282347E+38F, 1F)]
[Unmanaged]
public float MaxDuration { get; set; }
Property Value
System.Single
|
MaxDurationSelector
Maximum node execution time (in seconds) from behavior's knowledge (blackboard, goal or sensor). If set, overrides MaxDuration but still uses RandomDeviation.
Declaration
[EditorOrder(20)]
[Unmanaged]
public BehaviorKnowledgeSelector<float> MaxDurationSelector { get; set; }
Property Value
BehaviorKnowledgeSelector<System.Single>
|
RandomDeviation
Duration time randomization range to deviate original value.
Declaration
[EditorOrder(20)]
[Limit(0F, 3.40282347E+38F, 1F)]
[Unmanaged]
public float RandomDeviation { get; set; }
Property Value
System.Single
|