Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MaterialPropertyDrawer.GetPropertyHeight

GetPropertyHeight(prop: MaterialProperty, label: string, editor: MaterialEditor): float;
float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor);
def GetPropertyHeight(prop as MaterialProperty, label as string, editor as MaterialEditor) as float

Parameters

propThe MaterialProperty to make the custom GUI for.
labelThe label of this property.
editorCurrent material editor.

Description

Override this method to specify how tall the GUI for this property is in pixels.

The default is one line high.