# SetTextureOffset(string, Vector2, int)

> Set the offset of a given texture property.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use MaterialProperty instead.

```csharp
public void SetTextureOffset(string propertyName, Vector2 value, int coord)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the texture property that you wish to modify the offset of.**** (\[Vector2]\(/engine/6000.0/script-reference/unityengine/vector2)): Scale to set.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Set the x or y component of the offset (0 for x, 1 for y).
