Add **Behavior Tree** asset type and editing
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user