# GetPropertyCount(Shader)

> Get the number of properties in Shader s.

## Definition

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

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

```csharp
public static int GetPropertyCount(Shader s)
```

### Parameters

**** (\[Shader]\(/engine/6000.7/script-reference/unityengine/shader)): The shader to check against.

### Returns

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