Add **Behavior Tree** asset type and editing

This commit is contained in:
Wojtek Figat
2023-08-16 13:26:33 +02:00
parent f8dc59d670
commit 18b47257fd
23 changed files with 1417 additions and 3 deletions

View File

@@ -178,6 +178,11 @@ namespace FlaxEditor.Modules.SourceCodeEditing
/// </summary>
public readonly CachedCustomAnimGraphNodesCollection AnimGraphNodes = new CachedCustomAnimGraphNodesCollection(32, new ScriptType(typeof(AnimationGraph.CustomNodeArchetypeFactoryAttribute)), IsTypeValidScriptingType, HasAssemblyValidScriptingTypes);
/// <summary>
/// The Behavior Tree custom nodes collection.
/// </summary>
public readonly CachedTypesCollection BehaviorTreeNodes = new CachedTypesCollection(64, new ScriptType(typeof(BehaviorTreeNode)), IsTypeValidScriptingType, HasAssemblyValidScriptingTypes);
internal CodeEditingModule(Editor editor)
: base(editor)
{
@@ -361,6 +366,7 @@ namespace FlaxEditor.Modules.SourceCodeEditing
Scripts.ClearTypes();
Controls.ClearTypes();
AnimGraphNodes.ClearTypes();
BehaviorTreeNodes.ClearTypes();
TypesCleared?.Invoke();
}