UnityEditor.MaterialEditor.ExtraPropertyAfterTexture C# (CSharp) Method

ExtraPropertyAfterTexture() private method

private ExtraPropertyAfterTexture ( Rect r, MaterialProperty property ) : void
r UnityEngine.Rect
property MaterialProperty
return void
        private void ExtraPropertyAfterTexture(Rect r, MaterialProperty property)
        {
            if (((property.type == MaterialProperty.PropType.Float) || (property.type == MaterialProperty.PropType.Color)) && (r.width > EditorGUIUtility.fieldWidth))
            {
                float labelWidth = EditorGUIUtility.labelWidth;
                EditorGUIUtility.labelWidth = r.width - EditorGUIUtility.fieldWidth;
                this.ShaderProperty(r, property, " ");
                EditorGUIUtility.labelWidth = labelWidth;
            }
            else
            {
                this.ShaderProperty(r, property, string.Empty);
            }
        }
MaterialEditor