기술 자료

Unity Engine

Unity Engine

IndexOf<T>(T[], T)

Index of first element with value value.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

IndexOf<T>(`<>[], T)

public static int IndexOf<T>(T[] array, T value)

Parameters

array


value

T

Returns

Type

Description

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