Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

MaterialEditor.TexturePropertyWithHDRColor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Rect TexturePropertyWithHDRColor(GUIContent label, MaterialProperty textureProp, MaterialProperty colorProperty, bool showAlpha);

Parameters

Parameter Description
label The label to show for the texture property.
textureProp The texture property to draw.
colorProperty The color property to show as an HDR color.
showAlpha Set to true to show the alpha channel in the color field. Set to false to hide it.

Returns

Rect The position and size of the line that the method drew.

Description

Draws a texture property and an HDR color field on a single line.

The texture shows as a small thumbnail. Use this method for a compact view of a texture and an HDR color.


Obsolete Use TexturePropertyWithHDRColor(GUIContent label, MaterialProperty textureProp, MaterialProperty colorProperty, bool showAlpha), true.

Declaration

public Rect TexturePropertyWithHDRColor(GUIContent label, MaterialProperty textureProp, MaterialProperty colorProperty, ColorPickerHDRConfig hdrConfig, bool showAlpha);

Parameters

Parameter Description
label The label to show for the texture property.
textureProp The texture property to draw.
colorProperty The color property to show as an HDR color.
hdrConfig The HDR color picker settings. This overload ignores them.
showAlpha Set to true to show the alpha channel in the color field. Set to false to hide it.

Returns

Rect The position and size of the line that the method drew.

Description

Draws a texture property and an HDR color field on a single line, with HDR color picker settings.

This overload is obsolete. Use MaterialEditor.TexturePropertyWithHDRColor(GUIContent,MaterialProperty,MaterialProperty,bool) instead.