GetPropertyHeight
示例程序 | |
---|---|
说明 | 获取绘制某个 PropertyField 所需的高度 |
用法
public static float GetPropertyHeight(SerializedProperty property, bool includeChildren);
public static float GetPropertyHeight(SerializedPropertyType type, GUIContent label);
public static float GetPropertyHeight(SerializedProperty property, GUIContent label = null, bool includeChildren = true);
参数
property
label
includeChildren