Class SelectorNode
Represents a Selector node in a behavior tree.
Inheritance
SelectorNode
Implements
Inherited Members
Namespace: EyeAuras.BehaviorTree.Nodes.ControlFlow
Assembly: EyeAuras.BehaviorTree.dll
Syntax
[AuraEntity(Name = "Selector")]
public class SelectorNode : ControlFlowNode<SelectorNodeProperties>, INode<SelectorNodeProperties>, IAuraObject<SelectorNodeProperties>, IEntityContainer, IControlFlowNode, INode, IAuraObject, IBindableReactiveObject, ICanSetContext, IHasContext, IBTNode, IHasId, IHasTypedId<string>, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, IBehaviorTreeSerializable, ICanSetName, IHasName
Remarks
Selector nodes are control nodes that tick their children sequentially from top to bottom.
- If a child node succeeds, the Selector node will immediately return a status of success.
- If a child node is running, the Selector node will return a status of running and will resume from this child in the next tick.
- If a child node fails, the Selector node moves on to the next child.
- If all children fail, the Selector node itself returns a status of failure. This node is stateful and remembers the last running child across ticks.
Constructors
Name | Description |
---|---|
SelectorNode() |
Methods
Name | Description |
---|---|
TickChildrenInternal(ArraySegment<IBTNode>, CancellationToken) |