# GetShaderPassEnabled(string)

> Checks whether a given Shader pass is enabled on this Material.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public bool GetShaderPassEnabled(string passName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Shader pass name (case insensitive).

### Returns

| Type                                                          | Description                         |
| ------------------------------------------------------------- | ----------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the Shader pass is enabled. |

### Remarks

By default, all shader passes are enabled. Note that this method only returns false if the pass has been explicitly disabled for this Material using [Material.SetShaderPassEnabled](/engine/6000.0/script-reference/unityengine/material/setshaderpassenabled.md). If a pass does not exist in the currently used Shader, but has not been disabled, then the method still returns true.

Additional Resources: [Material.SetShaderPassEnabled](/engine/6000.0/script-reference/unityengine/material/setshaderpassenabled.md), RenderLoop, Shader pass tags.
