文档

Unity Engine

Unity Engine

LastIndexOf<T>(T[], T)

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

Definition

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

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

Parameters

array


value

T

Returns

Type

Description

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