Created
November 14, 2012 17:05
-
-
Save cubed2d/4073355 to your computer and use it in GitHub Desktop.
How to draw a toolbar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EditorGUILayout.BeginHorizontal(EditorStyles.toolbar); | |
GUILayout.Label("Toolbar Title"); | |
GUILayout.FlexibleSpace(); | |
if (GUILayout.Button("A", EditorStyles.toolbarButton)) | |
{ | |
// does something | |
} | |
if (GUILayout.Button("B", EditorStyles.toolbarButton)) | |
{ | |
// does something | |
} | |
if (GUILayout.Button("C", EditorStyles.toolbarButton)) | |
{ | |
// does something | |
} | |
EditorGUILayout.EndHorizontal(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment