LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

MaterialEditor.GetPropertyHeight

public float GetPropertyHeight(MaterialProperty prop);
public float GetPropertyHeight(MaterialProperty prop, string label);

Description

Calculate height needed for the property.