public static void Init() { // Get existing open window or if none, make a new one: MatcapFXSplash window = (MatcapFXSplash)EditorWindow.GetWindow(typeof(MatcapFXSplash)); Vector2 size = new Vector2(500, 650); window.minSize = size; window.maxSize = size; window.Show(); }
static LaunchMatcapFXSplash() { string key = "MatcapFXSplash"; if (!EditorPrefs.HasKey(key)) { EditorPrefs.SetBool(key, true); MatcapFXSplash.Init(); } //EditorPrefs.DeleteKey (key); }