# FindIndex<T>(T[], Predicate<T>)

> Find the index of the first element that satisfies the predicate.

## Definition

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

## FindIndex\<T>(\`\<>\[], Predicate\<T>)

```csharp
public static int FindIndex<T>(T[] array, Predicate<T> match)
```

### Parameters

**** (\[\<T>\[]]\(./)): **** (\[Predicate\<T>]\(https\://learn.microsoft.com/dotnet/api/system.predicate)):&#x20;

### Returns

| Type                                                       | Description                                                                           |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The zero-based index of the first occurrence of the element, if found; otherwise, �1. |
