static void ShowEditor() { window = EditorWindow.GetWindow <AIEditorWindow>(); window.minSize = new Vector2(800, 600); window.titleContent = new GUIContent(windowTitle); manager = ScriptableObject.CreateInstance <NodeManager>(); manager.Init(); }
public static bool AutoOpen(int instanceID, int line) { if (Selection.activeObject != null && Selection.activeObject.GetType() == typeof(NodeManager)) { string path = AssetDatabase.GetAssetPath(instanceID); AIEditorWindow.ShowEditor(); window.Load(path); return(true); } return(false); }