Vixen
caa30e12
csharp
public enum ObserverAborts

What a decorator may interrupt when the data it reads changes.

Read the guide page for this →

Remarks

Unreal's four, which Unity's Behavior package independently arrived at. The test is two integer comparisons against the pre-order index range of the decorated node, which is the whole reason a template is laid out depth-first — doc 37 § D6.

⚠ The scope is Unity's, not Unreal's. An observer affects only the siblings under its own parent composite, and that composite restarts from child zero. Unreal's abort reaches further up the tree, which is more powerful and is the subject of most of the confusion in its forums — a decorator two levels above the running task aborting a branch it does not visibly contain. A rule the editor can draw is a rule an author can predict.

Fields and properties (4)

  • None

    Gates entry and nothing else. The default, and the cheapest.

  • Self

    If it starts failing while its own subtree is running, abort what is running.

  • LowerPriority

    If it starts passing while something after its subtree is running, take over.

  • Both

    Both tests.

Used by (31)

  • AbortsNothingDecoratorVixen.Ai.Tests
  • AuthorableNodeTestsVixen.Ai.Tests
  • BehaviorDecoratorVixen.Ai
  • BehaviorDecoratorSlotVixen.Ai
  • BehaviorNodeSchemaVixen.Ai
  • BehaviorTreeAbortOrderingTestsVixen.Ai.Tests
  • BehaviorTreeAbortTestsVixen.Ai.Tests
  • BehaviorTreeCompilerTestsVixen.Ai.Tests
  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BehaviorTreeDeterminismTestsVixen.Ai.Tests
  • BehaviorTreeInstanceVixen.Ai
  • BehaviorTreeResolverVixen.Ai
  • BehaviorTreeServiceTestsVixen.Ai.Tests
  • BlackboardDecoratorVixen.Ai
  • BuildStateVixen.Ai
  • CompareEntriesDecoratorVixen.Ai
  • CompileStateVixen.Ai
  • CompositeDecoratorVixen.Ai
  • ConeDecoratorVixen.Ai
  • DoesPathExistDecoratorVixen.Ai.Nodes
  • IsAtLocationDecoratorVixen.Ai
  • PatrolChaseGiveUpTestsVixen.Ai.Nodes.Tests
  • PerceivedTargetDecoratorVixen.Ai.Perception
  • PerceptionNodeTestsVixen.Ai.Perception.Tests
  • PerceptionNodesVixen.Ai.Perception
  • VillageVixen.Ai.Nodes.Tests
  • WorldNodesVixen.Ai.Nodes
  • BehaviorTreeDocumentTestsVixen.Editor.AssetEditors.Tests
  • BehaviorTreeModelVixen.Editor.Ai
  • BehaviorTreeModelTestsVixen.Editor.Ai.Tests
  • LiveAgentVixen.Editor.AssetEditors.Tests