コード例 #1
0
 private void OnDisable()
 {
     if (_initialized)
     {
         _instance    = null;
         _initialized = false;
     }
 }
コード例 #2
0
 public static void Create()
 {
     if (!_instance)
     {
         _instance = (BuildMabuWindow)EditorWindow.GetWindow(typeof(BuildMabuWindow), true);
         _instance.MLPluginPath = Path.Combine(Application.dataPath, Path.Combine("Plugins", "ML"));
         _instance._sdk         = SDK.Find(true);
         _instance.minSize      = new Vector2(500, 500);
         _instance.maxSize      = _instance.minSize;
         _instance.titleContent = new GUIContent("Build w/ Mabu");
         _instance.Show();
     }
 }
コード例 #3
0
 public static void Create()
 {
     if (!_instance)
     {
         _instance = (BuildMabuWindow)EditorWindow.GetWindow(typeof(BuildMabuWindow), true);
         _instance.MLPluginPath    = Path.Combine(Application.dataPath, Path.Combine("Plugins", "Lumin"));
         _instance._sdk            = SDK.Find(true);
         _instance.minSize         = new Vector2(500, 500);
         _instance.maxSize         = _instance.minSize;
         _instance.titleContent    = new GUIContent("Build w/ Mabu");
         _instance._pluginFilePath = EditorPrefs.GetString("MabuPluginFilePath");
         _instance._outputDir      = EditorPrefs.GetString("MabuOutputpath");
         _instance.Show();
     }
 }