public sealed class BehaviorTreeContentA behaviour tree as a file: a blackboard, a root, and where the boxes are.
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 ExtensionWhat a behaviour tree is written as.
public const int CurrentThe version this build writes and reads.
public int VersionWhich version wrote this file.
public string NameWhat the tree is called.
public List<BehaviorKeyContent> KeysIts blackboard's keys, in the order they were declared.
public BehaviorNodeContent? RootThe root, or for an empty tree.
Methods (1)
public BlackboardLayout BuildLayout(ICollection<BehaviorTreeDiagnostic>? diagnostics = null)Compiles the keys into a layout.
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