# TextureScaleOffsetProperty

> Draws tiling and offset properties for a texture.

## Definition

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

## TextureScaleOffsetProperty(MaterialProperty)

Draws tiling and offset properties for a texture.

```csharp
public void TextureScaleOffsetProperty(MaterialProperty property)
```

### Parameters

**** (\[MaterialProperty]\(/engine/6000.0/script-reference/unityeditor/materialproperty)): Property to draw.

## TextureScaleOffsetProperty(Rect, MaterialProperty)

Draws tiling and offset properties for a texture.

```csharp
public float TextureScaleOffsetProperty(Rect position, MaterialProperty property)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rect to draw this control in.**** (\[MaterialProperty]\(/engine/6000.0/script-reference/unityeditor/materialproperty)): Property to draw.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

## TextureScaleOffsetProperty(Rect, MaterialProperty, bool)

Draws tiling and offset properties for a texture.

```csharp
public float TextureScaleOffsetProperty(Rect position, MaterialProperty property, bool partOfTexturePropertyControl)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rect to draw this control in.**** (\[MaterialProperty]\(/engine/6000.0/script-reference/unityeditor/materialproperty)): Property to draw.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If this control should be rendered under large texture property control use 'true'. If this control should be shown seperately use 'false'.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

## TextureScaleOffsetProperty(Rect, Vector4)

TODO.

```csharp
public static Vector4 TextureScaleOffsetProperty(Rect position, Vector4 scaleOffset)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)):&#x20;

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |

## TextureScaleOffsetProperty(Rect, Vector4, bool)

TODO.

```csharp
public static Vector4 TextureScaleOffsetProperty(Rect position, Vector4 scaleOffset, bool partOfTexturePropertyControl)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): **** (\[Vector4]\(/engine/6000.0/script-reference/unityengine/vector4)): **** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                              | Description |
| ----------------------------------------------------------------- | ----------- |
| [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md) |             |
