public static void Init() { GroupifyWindow window = EditorWindow.GetWindow <GroupifyWindow>(); window.minSize = new Vector2(370, 250); window.Show(); if (window.Groupify == null) { window.Groupify = FindObjectOfType <Groupify>(); } }
public override void OnInspectorGUI() { GUILayout.BeginVertical(GUI.skin.box); GUILayout.BeginHorizontal(); GUILayout.Label("Groups: " + groupify.GroupsCount); GUILayout.EndHorizontal(); if (GUILayout.Button("Open groupify window", EditorStyles.miniButton)) { GroupifyWindow.Init(groupify); } if (GUILayout.Button("About", EditorStyles.miniButton)) { } GUILayout.EndVertical(); }
private void NoGroupify() { using (new VerticalBlock()) { GUILayout.FlexibleSpace(); using (new HorizontalBlock()) { GUILayout.FlexibleSpace(); if (GUILayout.Button("Create groupify")) { GroupifyWindow.CreateGroupify(); } GUILayout.FlexibleSpace(); } GUILayout.FlexibleSpace(); } }