void GUISettingButton() { if (GUILayout.Button("Settings", GUILayout.Width(100f))) { SettingsEditorWindow.Init(); } }
static public void Init() { // Get existing open window or if none, make a new one: SettingsEditorWindow window = (SettingsEditorWindow)GetWindow(typeof(SettingsEditorWindow), true, "Hitbox Studio Pro Settings", true); window.minSize = new Vector2(350, 350); window.Show(); }