Method MinMaxShaderProperty
MinMaxShaderProperty(MaterialEditor, MaterialProperty, MaterialProperty, float, float, GUIContent)
Draw a special slider to specify a range between a min and a max for two float shader properties.
Declaration
public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty min, MaterialProperty max, float minLimit, float maxLimit, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
MaterialEditor | editor | |
MaterialProperty | min | The MaterialProperty containing the lower value of the range the slider shows |
MaterialProperty | max | The MaterialProperty containing the upper value of the range the slider shows |
float | minLimit | The limit at the left end of the slider |
float | maxLimit | The limit at the right end of the slider |
GUIContent | label | Label for the property |
MinMaxShaderProperty(MaterialEditor, MaterialProperty, float, float, GUIContent)
Draw a special slider to specify a range between a min and a max for a vector shader property.
Declaration
public static void MinMaxShaderProperty(this MaterialEditor editor, MaterialProperty remapProp, float minLimit, float maxLimit, GUIContent label)
Parameters
Type | Name | Description |
---|---|---|
MaterialEditor | editor | |
MaterialProperty | remapProp | The MaterialProperty containing the range the slider shows in the x and y components of its vectorValue |
float | minLimit | The limit at the left end of the slider |
float | maxLimit | The limit at the right end of the slider |
GUIContent | label | Label for the property |