- Home /
Question by
YoungDeveloper · Oct 15, 2013 at 10:48 AM ·
guilayoutlabelalignmentspacing
GUILayout.Label alignment / spacing
When using horizontally aligned guilayout labels, the text don't quite get along between two label.
GUILayout.BeginHorizontal("");
GUILayout.Label("someText1");
GUILayout.Label("someText2");
GUILayout.EndVertical();
As you can see there's a gap between text (logically).
http://gyazo.com/2ee18b3267005088aa7c3a981c97495e
Is there a way to force reduce the spacing ?
The solution shouldn't be hard, at least i think so, but i really couldn't find it.
-Thanks a bunch.
Comment
$$anonymous$$aybe some kind of label overlap, or maybe there are others ways of rendering custom array string text in gui. So array text elements would be close to each other, but they are not single text chunk.
Best Answer
Answer by YoungDeveloper · Oct 15, 2013 at 03:45 PM
Solved, You can tweak all the setting in custom GUIStyle, and don't forget to set that style as the one currently used!