Method TexturePropertyWithHDRColorFixed
TexturePropertyWithHDRColorFixed(MaterialEditor, GUIContent, MaterialProperty, MaterialProperty, Boolean)
Draw a texture property with an HDR color field, it's the same as MaterialEditor.TexturePropertyWithHDRColor but it adds a fix for usage under indentation that would normally break it.
Declaration
public static Rect TexturePropertyWithHDRColorFixed(this MaterialEditor editor, GUIContent label, MaterialProperty textureProp, MaterialProperty colorProperty, bool showAlpha)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialEditor | editor | material editor |
| GUIContent | label | label to show |
| MaterialProperty | textureProp | texture material property |
| MaterialProperty | colorProperty | color material property |
| Boolean | showAlpha | show alpha channel |
Returns
| Type | Description |
|---|---|
| Rect | Rect used to display the TextureProperty. |