文档

Unity Engine

Unity Engine

GetIndexForId(int)

Returns the index for the specified id.
阅读时间1 分钟最后更新于 1 个月前

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.