# GetTextureOffset(string, out bool, out bool)

> Get the value of a given texture offset for a given texture property.

## Definition

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

## GetTextureOffset(string, bool, bool)

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

```csharp
public Vector2 GetTextureOffset(string propertyName, out bool hasMixedValueX, out bool hasMixedValueY)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the texture property that you wish to examine the offset of.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Does the x offset have multiple values?**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Does the y offset have multiple values?

### Returns

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