Version: 2021.1
언어: 한국어

TreeView.SetupParentsAndChildrenFromDepths

매뉴얼로 전환
protected static void SetupParentsAndChildrenFromDepths (IMGUI.Controls.TreeViewItem root, IList<TreeViewItem> rows);

파라미터

root The hidden root item.
rows TreeViewItems where only the depth property have been set.

설명

Utility method for initializing all the parent and children properties of the rows using the order and the depths values that have been set.

Some tree data models are based on order and depth information only. This method can be called after creating all the rows to initalize the ‘parent’ and ‘children’ properties for each TreeViewItem in ‘rows’ based on the depth information for each item. This method assumes that the data presented in `rows` is in the order it should appear from top to bottom in the TreeView.

See Also: SetupDepthsFromParentsAndChildren, BuildRoot.