Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LastIndexOf<T>(T[], T)

Index of the last element with value value.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

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.