UnityEditor.MaterialPropertyHandler.GetPropertyHeight C# (CSharp) Méthode

GetPropertyHeight() public méthode

public GetPropertyHeight ( MaterialProperty prop, string label, MaterialEditor editor ) : float
prop MaterialProperty
label string
editor MaterialEditor
Résultat 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;
        }