how can i adjust the vertical spacing of elements arranged in a vertical gui layout.
Answer by karl_
Sep 04, 2011 at 07:19 PM
uh thx :) that was simple.
Other options are passing a GUILayout.Height parameter (good to make columns of elements have the same total height), or using GUILayout.FlexibleSpace (good for sharing space evenly without explicit values).
Answer by LookWhatIDid
Mar 04 at 12:05 AM
Actually, use a negative value if you want to make the space smaller. I.E. GUILayout.Space(-10);
Odd huh? But it works.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
6 People are following this question.
Get height of a group of GUILayout controls
I need help in making a GUI layout scroll view
Multiple Layout Errors with unitys GUI Layout
how to do in-game drag and drop GUI