# FindPass(string)

> Returns the index of the pass passName.

## Definition

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

```csharp
public int FindPass(string passName)
```

### Parameters

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

### Returns

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

### Remarks

Returns the index of the pass `passName`. -1 if it does not exist. Additional Resources: [Material.GetPassName](/engine/6000.6/script-reference/unityengine/material/getpassname.md)
