# GetPropertyType(Shader, int)

> Get the ShaderProperyType of the shader propery at index propertyIdx of Shader s.

## Definition

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

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

```csharp
public static ShaderUtil.ShaderPropertyType GetPropertyType(Shader s, int propertyIdx)
```

### Parameters

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

### Returns

| Type                                                                                               | Description |
| -------------------------------------------------------------------------------------------------- | ----------- |
| [ShaderPropertyType](/engine/6000.6/script-reference/unityeditor/shaderutil/shaderpropertytype.md) |             |
