ドキュメント

Unity Engine

Unity Engine

GetChildIndexForId(int)

Gets the child index under the parent of the item with the specified ID.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public int GetChildIndexForId(int id)

Parameters

id

The item ID.

Returns

Type

Description

intThe child index under the parent. Returns -1 if the item has no parent or doesn't exist in the tree.