Method IntPopupShaderProperty
IntPopupShaderProperty(MaterialEditor, MaterialProperty, string, string[], int[])
Draw an integer popup selection field for a float shader property.
Declaration
public static int IntPopupShaderProperty(this MaterialEditor editor, MaterialProperty prop, string label, string[] displayedOptions, int[] optionValues)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialEditor | editor | |
| MaterialProperty | prop | The MaterialProperty to make a field for |
| string | label | Label for the property |
| string[] | displayedOptions | An array with the options shown in the popup |
| int[] | optionValues | An array with the values for each option |
Returns
| Type | Description |
|---|---|
| int | The value of the option that has been selected by the user |