//create window public static void Init() { GameSettingsEditor window = EditorWindow.GetWindow <GameSettingsEditor>(); window.minSize = new Vector2(500, 200); window.Show(); }
//创建窗口 public static void Init() { GameSettingsEditor window = EditorWindow.GetWindow <GameSettingsEditor>(); window.minSize = new Vector2(350, 200);//设置界面最小值,防止缩放超过最小值后看不到内容 window.Show(); }