FindIndex<T>(T[], Predicate<T>)
Find the index of the first element that satisfies the predicate.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
FindIndex<T>(`<>[], Predicate<T>)
public static int FindIndex<T>(T[] array, Predicate<T> match)
Parameters
Returns
Type | Description |
|---|---|
| int | The zero-based index of the first occurrence of the element, if found; otherwise, �1. |