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.

MaterialEditor.GetDefaultPropertyHeight

static function GetDefaultPropertyHeight(prop: MaterialProperty): float;
static float GetDefaultPropertyHeight(MaterialProperty prop);
static def GetDefaultPropertyHeight(prop as MaterialProperty) as float

Description

Calculate height needed for the property, ignoring custom drawers.

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