Skip to content

TreeElement

ClassAssetInventoryAssetInventory.Editor
public class TreeElement

Stable identifier and hierarchy base shared by catalog records that can be presented in Asset Inventory trees.

[SerializeField]
protected int m_ID

Returns

System.Int32

[SerializeField]
protected string m_Name

Returns

System.String

[SerializeField]
protected int m_Depth

Returns

System.Int32

public TreeElement()

public TreeElement(string name, int depth, int id)

Creates a hierarchy element with the supplied label, depth, and stable identifier.

Parameters

Name Type
name System.String
depth System.Int32
id System.Int32

[Ignore]
public int Depth { get; set; }

Returns

System.Int32

[Ignore]
public TreeElement Parent { get; set; }

Returns

AssetInventory.TreeElement

[Ignore]
public List<TreeElement> Children { get; set; }

Returns

System.Collections.Generic.List{AssetInventory.TreeElement}

[Ignore]
public bool HasChildren { get; }

Returns

System.Boolean

[Ignore]
public string TreeName { get; set; }

Returns

System.String

[Ignore]
public int TreeId { get; set; }

Returns

System.Int32