文档

Unity Engine

Unity Engine

IndexOf<T>(T[], T)

Index of first element with value value.
阅读时间1 分钟最后更新于 1 天前

Definition

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.