- Home /
Question by
ronaldosilva · Mar 27, 2014 at 09:03 PM ·
editorcustomization
How can I create a button group like [Select|Revert|Apply] of the default game object?
Like this:
Thanks in advance!
buttongroup.jpg
(10.5 kB)
Comment
Best Answer
Answer by frarees · Mar 27, 2014 at 11:03 PM
This should do:
EditorGUILayout.BeginHorizontal ();
if (GUILayout.Button ("Select", EditorStyles.miniButtonLeft)) {
}
if (GUILayout.Button ("Revert", EditorStyles.miniButton)) {
}
if (GUILayout.Button ("Apply", EditorStyles.miniButtonRight)) {
}
EditorGUILayout.EndHorizontal ();