public static void ShowWindow() { targets = new List <string>(); ControlBinder main = (ControlBinder)EditorWindow.GetWindow(typeof(ControlBinder)); main.minSize = new Vector2(398, 0); main.autoRepaintOnSceneChange = true; UnityEngine.Object.DontDestroyOnLoad(main); main.Start(); }