Search Unity

Custom Inpsector Toggle box click area too large?

Discussion in 'Editor & General Support' started by MikeUpchat, Feb 10, 2021.

  1. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,056
    I am trying to add a custom inspector for one of my classes and I use EditorGUILayout.BeginHorizontal to I can have a Toggle box next to a Foldout, and I can get that no problems, but I do have a problem in that the click area for the toggle is twice as wide as the actual check box so it overlaps the click area for the Foldout, how can I change the size of the click area for the EditorGUILayout.Toggle box?