# TexturePropertyWithHDRColor

> Method for showing a texture property control with a HDR color field and its color brightness float field.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## TexturePropertyWithHDRColor(GUIContent, MaterialProperty, MaterialProperty, ColorPickerHDRConfig, bool)

Method for showing a texture property control with a HDR color field and its color brightness float field.

> **Warning:**
>
> **Deprecated.** Use TexturePropertyWithHDRColor(GUIContent label, MaterialProperty textureProp, MaterialProperty colorProperty, bool showAlpha), true

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

### Parameters

**** (\[GUIContent]\(/engine/6000.5/script-reference/unityengine/guicontent)): The label used for the texture property.**** (\[MaterialProperty]\(/engine/6000.5/script-reference/unityeditor/materialproperty)): The texture property.**** (\[MaterialProperty]\(/engine/6000.5/script-reference/unityeditor/materialproperty)): The color property (will be treated as a HDR color).**** (\[ColorPickerHDRConfig]\(/engine/6000.5/script-reference/unityeditor/colorpickerhdrconfig)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If false then the alpha channel information will be hidden in the GUI.

### Returns

| Type                                                        | Description           |
| ----------------------------------------------------------- | --------------------- |
| [Rect](/engine/6000.5/script-reference/unityengine/rect.md) | Return the Rect used. |

### Remarks

The texture is shown using the mini thumbnail. Usefull for compact representation of a texture and a HDR color. Additional Resources: [MaterialEditor.TexturePropertySingleLine](/engine/6000.5/script-reference/unityeditor/materialeditor/texturepropertysingleline.md), [ShaderGUI](/engine/6000.5/script-reference/unityeditor/shadergui.md).

## TexturePropertyWithHDRColor(GUIContent, MaterialProperty, MaterialProperty, bool)

Method for showing a texture property control with a HDR color field and its color brightness float field.

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

### Parameters

**** (\[GUIContent]\(/engine/6000.5/script-reference/unityengine/guicontent)): The label used for the texture property.**** (\[MaterialProperty]\(/engine/6000.5/script-reference/unityeditor/materialproperty)): The texture property.**** (\[MaterialProperty]\(/engine/6000.5/script-reference/unityeditor/materialproperty)): The color property (will be treated as a HDR color).**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If false then the alpha channel information will be hidden in the GUI.

### Returns

| Type                                                        | Description           |
| ----------------------------------------------------------- | --------------------- |
| [Rect](/engine/6000.5/script-reference/unityengine/rect.md) | Return the Rect used. |

### Remarks

The texture is shown using the mini thumbnail. Usefull for compact representation of a texture and a HDR color. Additional Resources: [MaterialEditor.TexturePropertySingleLine](/engine/6000.5/script-reference/unityeditor/materialeditor/texturepropertysingleline.md), [ShaderGUI](/engine/6000.5/script-reference/unityeditor/shadergui.md).
