# TextureProperty

> Draw a property field for a texture shader property.

## Definition

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

## TextureProperty(MaterialProperty, string)

Draw a property field for a texture shader property.

```csharp
public Texture TextureProperty(MaterialProperty prop, string label)
```

### Parameters

**** (\[MaterialProperty]\(/engine/6000.6/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(MaterialProperty, string, bool)

Draw a property field for a texture shader property.

```csharp
public Texture TextureProperty(MaterialProperty prop, string label, bool scaleOffset)
```

### Parameters

**** (\[MaterialProperty]\(/engine/6000.6/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Draw scale / offset.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(Rect, MaterialProperty, string)

Draw a property field for a texture shader property.

```csharp
public Texture TextureProperty(Rect position, MaterialProperty prop, string label)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[MaterialProperty]\(/engine/6000.6/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(Rect, MaterialProperty, GUIContent)

Draw a property field for a texture shader property.

```csharp
public Texture TextureProperty(Rect position, MaterialProperty prop, GUIContent label)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[MaterialProperty]\(/engine/6000.6/script-reference/unityeditor/materialproperty)): **** (\[GUIContent]\(/engine/6000.6/script-reference/unityengine/guicontent)): Label for the field.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(Rect, MaterialProperty, string, bool)

Draw a property field for a texture shader property.

```csharp
public Texture TextureProperty(Rect position, MaterialProperty prop, string label, bool scaleOffset)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[MaterialProperty]\(/engine/6000.6/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Draw scale / offset.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(Rect, MaterialProperty, string, string, bool)

Draw a property field for a texture shader property.

```csharp
public Texture TextureProperty(Rect position, MaterialProperty prop, string label, string tooltip, bool scaleOffset)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[MaterialProperty]\(/engine/6000.6/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Tooltip for the field.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Draw scale / offset.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(Rect, MaterialProperty, GUIContent, bool)

Draw a property field for a texture shader property.

```csharp
public Texture TextureProperty(Rect position, MaterialProperty prop, GUIContent label, bool scaleOffset)
```

### Parameters

**** (\[Rect]\(/engine/6000.6/script-reference/unityengine/rect)): **** (\[MaterialProperty]\(/engine/6000.6/script-reference/unityeditor/materialproperty)): **** (\[GUIContent]\(/engine/6000.6/script-reference/unityengine/guicontent)): Label for the field.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Draw scale / offset.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(string, string, ShaderPropertyTexDim)

Draw a property field for a texture shader property.

> **Warning:**
>
> **Removed.** Use TextureProperty with MaterialProperty instead.

```csharp
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.**** (ShaderPropertyTexDim):&#x20;

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |

## TextureProperty(string, string, ShaderPropertyTexDim, bool)

Draw a property field for a texture shader property.

> **Warning:**
>
> **Removed.** Use TextureProperty with MaterialProperty instead.

```csharp
public Texture TextureProperty(string propertyName, string label, ShaderUtil.ShaderPropertyTexDim texDim, bool scaleOffset)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label for the field.**** (ShaderPropertyTexDim): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Draw scale / offset.

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Texture](/engine/6000.6/script-reference/unityengine/texture.md) |             |
