- Home /
How to put a GUILayout button BESIDE another one instead of below?
Or can you only put it under it or over it? How would I put a button beside one because Space(); only puts it under one.
Comment
Best Answer
Answer by iwaldrop · Dec 24, 2013 at 04:57 AM
Like this:
void OnGUI()
{
GUILayout.BeginHorizonal();
{
GUILayout.Button("Button One");
GUILayout.Button("Button Two");
}
GUILayout.EndHorizontal();
}
For UnityScript, replace 'void' with 'function'.
Your answer
Follow this Question
Related Questions
GUI Button Text in upper left? 2 Answers
Unselect GUI Button 0 Answers
GUISkin or otherwise - Once clicked, button stays same color 1 Answer
GUILayout Window Help 1 Answer
GUI Repeat Button problem 1 Answer