UnityEditor.TextAreaDrawer.GetPropertyHeight C# (CSharp) Method

GetPropertyHeight() public method

public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty
label UnityEngine.GUIContent
return float
        public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
        {
            TextAreaAttribute attribute = base.attribute as TextAreaAttribute;
            string stringValue = property.stringValue;
            int num2 = Mathf.Clamp(Mathf.CeilToInt(EditorStyles.textArea.CalcHeight(GUIContent.Temp(stringValue), EditorGUIUtility.contextWidth) / 13f), attribute.minLines, attribute.maxLines);
            return (32f + ((num2 - 1) * 13));
        }