TreeElement
public class TreeElementStable identifier and hierarchy base shared by catalog records that can be presented in Asset Inventory trees.
Fields
Section titled “Fields”
[SerializeField]protected int m_IDReturns
System.Int32
m_Name
Section titled “m_Name”[SerializeField]protected string m_NameReturns
System.String
m_Depth
Section titled “m_Depth”[SerializeField]protected int m_DepthReturns
System.Int32
Constructors
Section titled “Constructors”
TreeElement()
Section titled “TreeElement()”public TreeElement()
TreeElement(string, int, int)
Section titled “TreeElement(string, int, int)”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 |
Properties
Section titled “Properties”
[Ignore]public int Depth { get; set; }Returns
System.Int32
Parent
Section titled “Parent”[Ignore]public TreeElement Parent { get; set; }Returns
AssetInventory.TreeElement
Children
Section titled “Children”[Ignore]public List<TreeElement> Children { get; set; }Returns
System.Collections.Generic.List{AssetInventory.TreeElement}
HasChildren
Section titled “HasChildren”[Ignore]public bool HasChildren { get; }Returns
System.Boolean
TreeName
Section titled “TreeName”[Ignore]public string TreeName { get; set; }Returns
System.String
TreeId
Section titled “TreeId”[Ignore]public int TreeId { get; set; }Returns
System.Int32