コード例 #1
0
        static void ShowEditor()
        {
            window              = EditorWindow.GetWindow <AIEditorWindow>();
            window.minSize      = new Vector2(800, 600);
            window.titleContent = new GUIContent(windowTitle);

            manager = ScriptableObject.CreateInstance <NodeManager>();
            manager.Init();
        }
コード例 #2
0
 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);
 }