Documentation

Unity Engine

Unity Engine

GetDefaultPropertyHeight(MaterialProperty)

Calculate height needed for the property, ignoring custom drawers.
Read time 1 minuteLast updated 20 days 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

floatThe 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.