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