You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Unity versions 2017/2018 the foldout attribute looked identical to the gifs on this repo but in later versions of Unity the way the foldout is rendered looks off? The arrow isn't in line (top left of image) and there's now block-coloured rectangles around each variable (not sure if this is intended - it wasn't like that before).
The text was updated successfully, but these errors were encountered:
gxbrxnth
changed the title
Render of foldout is offset in Unity 2019/2020
Foldout attribute looks off in Unity versions 2019/2020
Jul 1, 2020
For the foldout icon increase the left padding from 10 to 20 box.padding = new RectOffset(20, 0, 10, 0);
For the spacing issue (margins), underneath that line add this box.margin = new RectOffset(0, 0, 0, 0);
and underneath this line boxChild = new GUIStyle(GUI.skin.box); add this boxChild.margin = new RectOffset(0, 0, 0, 0);
In Unity versions 2017/2018 the foldout attribute looked identical to the gifs on this repo but in later versions of Unity the way the foldout is rendered looks off? The arrow isn't in line (top left of image) and there's now block-coloured rectangles around each variable (not sure if this is intended - it wasn't like that before).
The text was updated successfully, but these errors were encountered: