Answer the question
In order to leave comments, you need to log in
How to remove gaps?
for (int i = 0; i < x; i++)
{
EditorGUILayout.BeginHorizontal();
for (int j = 0; j < y; j++)
{
top[i, j] = EditorGUILayout.Toggle(top[i, j]);
}
GUILayout.FlexibleSpace();
EditorGUILayout.EndHorizontal();
}
Answer the question
In order to leave comments, you need to log in
GUIStyle myStyle = new GUIStyle (GUI.skin.label);
myStyle.margin = new RectOffset(11,22,33,44);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question