Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetIdForIndex(int)

Returns the id for the specified index.
Read time 1 minuteLast updated 8 days ago

Definition

public virtual int GetIdForIndex(int index)

Parameters

index

The item index.

Returns

Type

Description

intThe item ID.

Remarks

For example, the index will be different from the id in a tree.