# IsShaderPropertyHidden(Shader, int)

> Returns true if the shader propery at index propertyIdx is hidden with the [HideInInspector] attribute in the shader code.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use Shader.GetPropertyFlags and test against ShaderPropertyFlags.HideInInspector instead.

```csharp
public static bool IsShaderPropertyHidden(Shader s, int propertyIdx)
```

### Parameters

**** (\[Shader]\(/engine/6000.3/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 |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
