# GetPassName(int)

> Returns the name of the shader pass at index pass.

## Definition

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

```csharp
public string GetPassName(int pass)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

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

### Remarks

Returns the name of the shader pass at index `pass`. It will return an empty string if the pass does not exist.

Additional Resources: [Material.FindPass](/engine/6000.5/script-reference/unityengine/material/findpass.md).
