R
R
RandomProgrammer2022-03-07 12:35:24
Unity
RandomProgrammer, 2022-03-07 12:35:24

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();
        }

Here is this piece of code for my editor, and it gives the following result:
6225d1bf73a7b485419636.png
How to remove gaps between radio buttons?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Glebov, 2022-03-17
@GLeBaTi

GUIStyle myStyle = new GUIStyle (GUI.skin.label); 
 myStyle.margin = new RectOffset(11,22,33,44);

You can try to create and apply your own style.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question