Add concept of Goals to Behavior Knowledge

This commit is contained in:
Wojtek Figat
2023-08-29 11:41:07 +02:00
parent 81a2898d4e
commit 0defecaeb9
7 changed files with 213 additions and 48 deletions

View File

@@ -51,6 +51,11 @@ namespace FlaxEditor.Windows.Assets
/// </summary>
public object Blackboard => _knowledgePropertiesEditor.Selection.Count != 0 ? _knowledgePropertiesEditor.Selection[0] : null;
/// <summary>
/// Gets instance of the root node of the graph. Returns null if not added (or graph not yet loaded).
/// </summary>
public BehaviorTreeRootNode RootNode => (_surface.FindNode(19, 2) as Surface.Archetypes.BehaviorTree.Node)?.Instance as BehaviorTreeRootNode;
/// <inheritdoc />
public BehaviorTreeWindow(Editor editor, BinaryAssetItem item)
: base(editor, item)