ドキュメント

Unity Engine

Unity Engine

GetParentId(int)

Returns the parent ID of an item, by ID.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public virtual int GetParentId(int id)

Parameters

id

The ID of the item to fetch the parent from.

Returns

Type

Description

intThe parent ID, or -1 if the item is at the root of the tree.