文档

Unity Engine

Unity Engine

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

Find the index of the first element that satisfies the predicate.
阅读时间1 分钟最后更新于 1 天前

Definition

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

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

Parameters

Returns

Type

Description

intThe zero-based index of the first occurrence of the element, if found; otherwise, �1.