Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetIndexForId(int)

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

Definition

public virtual int GetIndexForId(int id)

Parameters

id

The item ID.

Returns

Type

Description

intThe item index.

Remarks

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