Method TextureColorProps
TextureColorProps(MaterialEditor, GUIContent, MaterialProperty, MaterialProperty, bool)
Helper function to show texture and color properties.
Declaration
public static Rect TextureColorProps(MaterialEditor materialEditor, GUIContent label, MaterialProperty textureProp, MaterialProperty colorProp, bool hdr = false)
Parameters
Type | Name | Description |
---|---|---|
MaterialEditor | materialEditor | The material editor to use. |
GUIContent | label | The label to use. |
MaterialProperty | textureProp | The texture property. |
MaterialProperty | colorProp | The color property. |
bool | hdr | Marks whether this is a HDR texture or not. |
Returns
Type | Description |
---|---|
Rect |