기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


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

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

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

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.