Method IntShaderProperty
IntShaderProperty(MaterialEditor, MaterialProperty, GUIContent, Func<int, int>)
Draw an integer property field for a float shader property.
Declaration
public static void IntShaderProperty(this MaterialEditor editor, MaterialProperty prop, GUIContent label, Func<int, int> transform = null)
Parameters
Type | Name | Description |
---|---|---|
MaterialEditor | editor | |
MaterialProperty | prop | The MaterialProperty to make a field for |
GUIContent | label | Label for the property |
Func<int, int> | transform | Optional function to apply on the new value |