# GetPass(int)

> Get a pass of a subshader.

## Definition

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

```csharp
public ShaderData.Pass GetPass(int passIndex)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the pass.

### Returns

| Type                                                                   | Description                                 |
| ---------------------------------------------------------------------- | ------------------------------------------- |
| [Pass](/engine/6000.7/script-reference/unityeditor/shaderdata/pass.md) | The specified pass or null, if none exists. |
