UnityEditor.MaterialEditor.GetPropertyRect C# (CSharp) Method

GetPropertyRect() private method

private GetPropertyRect ( MaterialProperty prop, string label, bool ignoreDrawer ) : Rect
prop MaterialProperty
label string
ignoreDrawer bool
return UnityEngine.Rect
        private Rect GetPropertyRect(MaterialProperty prop, string label, bool ignoreDrawer)
        {
            float height = 0f;
            if (!ignoreDrawer)
            {
                MaterialPropertyHandler handler = MaterialPropertyHandler.GetHandler(((Material) this.target).shader, prop.name);
                if (handler != null)
                {
                    if (label == null)
                    {
                    }
                    height = handler.GetPropertyHeight(prop, prop.displayName, this);
                    if (handler.propertyDrawer != null)
                    {
                        return EditorGUILayout.GetControlRect(true, height, EditorStyles.layerMaskField, new GUILayoutOption[0]);
                    }
                }
            }
            return EditorGUILayout.GetControlRect(true, height + GetDefaultPropertyHeight(prop), EditorStyles.layerMaskField, new GUILayoutOption[0]);
        }
MaterialEditor