private void OnDisable() { if (_initialized) { _instance = null; _initialized = false; } }
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(); } }
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(); } }