Version: 2017.2

EditorGUI.GetPropertyHeight

Switch to Manual
public static float GetPropertyHeight (SerializedProperty property, bool includeChildren);
public static float GetPropertyHeight (SerializedPropertyType type, GUIContent label);
public static float GetPropertyHeight (SerializedProperty property, GUIContent label= null, bool includeChildren= true);

Parameters

property @param property Высота области свойства.
label @param label Пояснительный текст или изображение.
includeChildren @param includeChildren Должна ли возвращаемая высота включать высоты дочерних свойств?

Description

Возвращает значение высоты, необходимое для контрола PropertyField.

The height is based on the type of the SerializedProperty, and inclues the height of all expanded children if the includeChildren parameter is set to true, which is the default. If the property has a custom PropertyDrawer, the function will return the height returned by that drawer. The includeChildren parameter is ignored in that case, as PropertyDrawers always include children.