Vixen
c7401864
csharp
public sealed class BehaviorNodeDefinition

One authored node, before it is compiled.

Read the guide page for this →

Remarks

The tree as a person drew it: a root with children, each carrying its own decorators and services as lists. Children is ordered, and that order is the whole priority ordering of the compiled tree.

⚠ Child order is stored, not derived from a position on a canvas. Unreal derives it from the horizontal position of the child nodes, which makes three ordinary gestures dangerous: auto-layout re-derives positions, so laying the graph out silently reorders the tree; dragging a node six pixels left to line it up with its sibling changes which branch wins; and a merge that resolves two positions produces a tree neither author wrote, with a diff showing only coordinates. All three are silent and all three change what the agent does — doc 37 § D5.

Fields and properties (10)

  • public Symbol Name

    What it is called, for diagnostics and for the editor.

  • public BehaviorNodeKind Kind

    Composite or task.

  • public BehaviorCompositeKind Composite

    How it walks its children, when it is a composite.

  • public Symbol Action

    Which registered action it runs, when it is a task.

  • public ParallelFinishMode FinishMode

    What a parallel does when its main task ends.

  • public float Weight

    Its share of a random selector's draw. Non-positive is treated as one.

  • public BehaviorTreeAsset? Subtree

    The tree to splice in here, when this task is a static RunSubtree.

  • public List<BehaviorNodeDefinition> Children

    Its children, in priority order.

  • public List<BehaviorDecorator> Decorators

    Its decorators, in evaluation order.

  • public List<BehaviorServiceDefinition> Services

    Its services.

Methods (3)

Used by (18)

  • AiSnapshotTestsVixen.Ai.Tests
  • AiSystemTreeTestsVixen.Ai.Tests
  • BehaviorTreeVixen.Ai
  • BehaviorTreeAbortOrderingTestsVixen.Ai.Tests
  • BehaviorTreeAbortTestsVixen.Ai.Tests
  • BehaviorTreeAssetVixen.Ai
  • BehaviorTreeCompilerTestsVixen.Ai.Tests
  • BehaviorTreeCompositeTestsVixen.Ai.Tests
  • BehaviorTreeContentCompilerVixen.Ai
  • BehaviorTreeCostTestsVixen.Ai.Tests
  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BehaviorTreeDeterminismTestsVixen.Ai.Tests
  • BehaviorTreeServiceTestsVixen.Ai.Tests
  • BuildStateVixen.Ai
  • CompileStateVixen.Ai
  • FleetVixen.Ai.Tests
  • TreeHarnessVixen.Ai.Tests
  • VillageVixen.Ai.Nodes.Tests