文档

Unity Engine

Download Unity

Unity Engine

GetDefaultPropertyHeight(MaterialProperty)

Calculate height needed for the property, ignoring custom drawers.
阅读时间1 分钟最后更新于 21 天前

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.