EditorGUIUtility.standardVerticalSpacing

切换到手册
public static float standardVerticalSpacing ;

描述

获取默认用于控件之间垂直间距的高度。

在没有 GUILayout 的情况下创建 GUI(例如 PropertyDrawer 需要的 GUI),并且您需要在彼此之下放置多个控件时,可以使用 standardVerticalSpacing 来确保控件之间具有适当的标准间距。这比硬编码特定像素值更可取。 另请参阅:EditorGUILayout.GetControlRect