ドキュメント

Unity Engine

Unity Engine

GetPropertyHeight(MaterialProperty, string, MaterialEditor)

Override this method to specify how tall the GUI for this property is in pixels.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public virtual float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor)

Parameters

The MaterialProperty to make the custom GUI for.

label

The label of this property.

Current material editor.

Returns

Type

Description

float

Remarks

The default is one line high.