ドキュメント

Unity Engine

Download Unity

Unity Engine

GetDefaultPropertyHeight(MaterialProperty)

Calculate height needed for the property, ignoring custom drawers.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.