Vixen
c7401864
csharp
public sealed class BehaviorTreeContent

A behaviour tree as a file: a blackboard, a root, and where the boxes are.

Read the guide page for this →

Remarks

What a .vxbt holds, what the importer compiles and what a game loads. It is a separate shape from BehaviorTreeAsset on purpose: the asset holds live BehaviorDecorator objects and is what the compiler consumes, and this holds the data those are built from. BehaviorTreeContentCompiler is the one direction between them.

The blackboard travels with the tree rather than being a second asset. Unreal makes a blackboard its own file and shares it between trees, which is genuinely useful and is a thing this can grow — but a tree whose keys live somewhere else cannot be opened, read or compiled on its own, and every diagnostic about a key becomes a diagnostic about a file the author is not looking at.

Fields and properties (6)

  • public const string Extension

    What a behaviour tree is written as.

  • public const int Current

    The version this build writes and reads.

  • public int Version

    Which version wrote this file.

  • public string Name

    What the tree is called.

  • public List<BehaviorKeyContent> Keys

    Its blackboard's keys, in the order they were declared.

  • public BehaviorNodeContent? Root

    The root, or for an empty tree.

Methods (1)

Used by (20)

  • AuthorableNodeTestsVixen.Ai.Tests
  • BehaviorTreeContentCompilerVixen.Ai
  • BehaviorTreeResolverVixen.Ai
  • BehaviorTreeResolverReuseTestsVixen.Ai.Tests
  • BuildStateVixen.Ai
  • PatrolChaseGiveUpTestsVixen.Ai.Nodes.Tests
  • PerceptionNodeTestsVixen.Ai.Perception.Tests
  • TypeRegistrationVixen.Ai
  • Vixen_Ai_BehaviorTreeContentSerializerVixen.Ai
  • WorldNodeRegistrationTestsVixen.Ai.Nodes.Tests
  • BehaviorTreeDocumentVixen.Editor.AssetEditors
  • BehaviorTreeDocumentTestsVixen.Editor.AssetEditors.Tests
  • BehaviorTreeImporterVixen.Editor.Assets
  • BehaviorTreeLayoutVixen.Editor.Ai
  • BehaviorTreeModelVixen.Editor.Ai
  • BehaviorTreeModelTestsVixen.Editor.Ai.Tests
  • BehaviorTreeProjectionVixen.Editor.Ai
  • BehaviorTreeViewVixen.Editor.AssetEditors
  • LiveAgentVixen.Editor.AssetEditors.Tests
  • SnapshotCommandVixen.Editor.AssetEditors