Vixen
caa30e12
csharp
public readonly record struct BehaviorField

One settable thing on a node, decorator or service.

Read the guide page for this →

Remarks

The row an inspector draws without any per-node editor code, the way doc 34's GoalKindSchema generates a goal's. That is not a saving of typing: an inspector written by hand per node is fifty places for a label and a tooltip to drift from what the node does, and the node library is a list this document expects to grow.

Fields and properties (6)

  • public string Name

    What the file calls it.

  • public string Label

    What a person reads.

  • public BehaviorFieldKind Kind

    What it holds.

  • public string Description

    What it means, for the inspector's tooltip.

  • public string Default

    What it is when nobody has said.

  • public string[]? Choices

    The options, for Choice.

Methods (1)

  • public BehaviorField(string Name, string Label, BehaviorFieldKind Kind, string Description, string Default = "", string[]? Choices = null)

    One settable thing on a node, decorator or service.

Used by (9)

  • BehaviorNodeSchemaVixen.Ai
  • BehaviorNodeTypeVixen.Ai
  • BuildStateVixen.Ai
  • PerceptionNodesVixen.Ai.Perception
  • QueryNodesVixen.Ai.Nodes
  • WorldNodeRegistrationTestsVixen.Ai.Nodes.Tests
  • WorldNodesVixen.Ai.Nodes
  • BehaviorTreeModelVixen.Editor.Ai
  • BehaviorTreeViewVixen.Editor.AssetEditors