GetPropertyHeight(SerializedProperty, GUIContent)
Override this method to specify how tall the GUI for this field is in pixels.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public virtual float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
The SerializedProperty to make the custom GUI for.
The label of this property.
Returns
Type | Description |
|---|---|
| float | The height in pixels. |
Remarks
The default is one line high.