기술 자료

Unity Engine

Unity Engine

GetChildIndexForId(int)

Gets the child index under the parent of the item with the specified ID.
읽는 시간 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.