Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

BaseTreeViewController.GetParentId

Declaration

public int GetParentId(int id);

Parameters

id The ID of the item to fetch the parent from.

Returns

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

Description

Returns the parent ID of an item, by ID.