Method IntSliderShaderProperty
IntSliderShaderProperty(MaterialEditor, MaterialProperty, GUIContent)
Draw an integer slider for a range shader property.
Declaration
public static void IntSliderShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialEditor | editor | |
| MaterialProperty | prop | The MaterialProperty to make a field for |
| GUIContent | label | Label for the property |
IntSliderShaderProperty(MaterialEditor, MaterialProperty, int, int, GUIContent)
Draw an integer slider for a float shader property.
Declaration
public static void IntSliderShaderProperty(this MaterialEditor editor, MaterialProperty prop, int min, int max, GUIContent label)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialEditor | editor | |
| MaterialProperty | prop | The MaterialProperty to make a field for |
| int | min | The value at the left end of the slider |
| int | max | The value at the right end of the slider |
| GUIContent | label | Label for the property |