기술 자료

Unity Engine

Unity Engine

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

Find the index of the first element that satisfies the predicate.
읽는 시간 1분최근 업데이트: 한 달 전

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

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