# GetTexDim(Shader, int)

> Gets texture dimension of a shader property.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use Shader.GetPropertyTextureDimension instead.

```csharp
public static TextureDimension GetTexDim(Shader s, int propertyIdx)
```

### Parameters

**** (\[Shader]\(/engine/6000.3/script-reference/unityengine/shader)): The shader to get the property from.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The property index to use.

### Returns

| Type                                                                                          | Description        |
| --------------------------------------------------------------------------------------------- | ------------------ |
| [TextureDimension](/engine/6000.3/script-reference/unityengine/rendering/texturedimension.md) | Texture dimension. |

### Remarks

Additional Resources: [TextureDimension](/engine/6000.3/script-reference/unityengine/rendering/texturedimension.md), [ShaderUtil.GetPropertyCount](/engine/6000.3/script-reference/unityeditor/shaderutil/getpropertycount.md).
