UnityEditor.MaterialEditor.GetDefaultPropertyHeight C# (CSharp) Method

GetDefaultPropertyHeight() public static method

public static GetDefaultPropertyHeight ( MaterialProperty prop ) : float
prop MaterialProperty
return float
        public static float GetDefaultPropertyHeight(MaterialProperty prop)
        {
            if (prop.type == MaterialProperty.PropType.Vector)
            {
                return 32f;
            }
            if (prop.type == MaterialProperty.PropType.Texture)
            {
                return (GetTextureFieldHeight() + 6f);
            }
            return 16f;
        }
MaterialEditor