Space
GUILayout 中的静态方法 | Space |
---|---|
用法 | 添加空白区域 |
用法
public static void Space();
示例
public override void OnInspectorGUI () {
EditorGUILayout.LabelField ("Label", "This is a label.");
EditorGUILayout.LabelField ("Label", "There is a space following.");
EditorGUILayout.Space ();
EditorGUILayout.LabelField ("Label", "There is a space above.");
EditorGUILayout.LabelField ("Label", "This is a label.");
}