Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

MaterialEditor.GetDefaultPropertyHeight

public static float GetDefaultPropertyHeight(MaterialProperty prop);

Description

Calculate height needed for the property, ignoring custom drawers.

This is similar to GetPropertyHeight, except it ignores any custom MaterialPropertyDrawer objects.

Did you find this page useful? Please give it a rating: