private void OnDisable() { Editor = null; StateMachineEditor.Editor?.Close(); rootVisualElement.Remove(GraphView); _styleSheet = null; }
public static void ShowEditor() { Editor = GetWindow <AnimationGraphEditor>(); Editor.titleContent = new GUIContent("Animation Graph"); }