GetDefaultPropertyHeight(MaterialProperty)
Calculate height needed for the property, ignoring custom drawers.
Read time 1 minuteLast updated 3 hours ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static float GetDefaultPropertyHeight(MaterialProperty prop)
Parameters
The property to calculate the height for.
Returns
Type | Description |
|---|---|
| float | The height, in pixels, needed to draw the property, ignoring any custom property drawers. |
Remarks
This is similar to MaterialEditor.GetPropertyHeight, except it ignores any custom MaterialPropertyDrawer objects.