文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetIdForIndex(int)

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

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.