UnityEditor.MaterialPropertyHandler.GetPropertyHeight C# (CSharp) Method

GetPropertyHeight() public method

public GetPropertyHeight ( MaterialProperty prop, string label, MaterialEditor editor ) : float
prop MaterialProperty
label string
editor MaterialEditor
return float
        public float GetPropertyHeight(MaterialProperty prop, string label, MaterialEditor editor)
        {
            float num = 0f;
            if (this.m_DecoratorDrawers != null)
            {
                foreach (MaterialPropertyDrawer drawer in this.m_DecoratorDrawers)
                {
                    num += drawer.GetPropertyHeight(prop, label, editor);
                }
            }
            if (this.m_PropertyDrawer != null)
            {
                num += this.m_PropertyDrawer.GetPropertyHeight(prop, label, editor);
            }
            return num;
        }