As you see, something very simple.
I can control the space between the Textfiled and the toggle by changing the GUILayout.Space(x) line but I cannot find where to change the space beween the EditorGUILayout.TextField’s label and inputbox.
Same problem with the toggle’s name and checkbox too.
It looks like there is 2 tabulations inbetween but I would like to remove this.
You can use this method to get the label size auto adjusted
/// <summary>
/// Create a EditorGUILayout.TextField with no space between label and text field
/// </summary>
public static string TextField(string label, string text)
{
var textDimensions = GUI.skin.label.CalcSize(new GUIContent(label));
EditorGUIUtility.labelWidth = textDimensions.x;
return EditorGUILayout.TextField(label, text);
}