standardVerticalSpacing
Get the height used by default for vertical spacing between controls.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static float standardVerticalSpacing { get; }
Remarks
When creating GUI without GUILayout, such as is for instance required by PropertyDrawers, and you need to place several controls under each other, you can use standardVerticalSpacing to ensure there's the proper standard spacing between the controls. This is advisable over hardcoding specific pixel values. Additional Resources: EditorGUILayout.GetControlRect.