Class HierarchyTreeView
Tree view GUI for the MARS Simulation View hierarchy Hierarchy to tree view starting code brought from
Inherited Members
UnityEditor.IMGUI.Controls.TreeView.FindRows(System.Collections.Generic.IList<System.Int32>)
UnityEditor.IMGUI.Controls.TreeView.GetFirstAndLastVisibleRows(System.Int32, System.Int32)
UnityEditor.IMGUI.Controls.TreeView.SetExpanded(System.Collections.Generic.IList<System.Int32>)
UnityEditor.IMGUI.Controls.TreeView.SetSelection(System.Collections.Generic.IList<System.Int32>)
UnityEditor.IMGUI.Controls.TreeView.SetSelection(System.Collections.Generic.IList<System.Int32>, UnityEditor.IMGUI.Controls.TreeViewSelectionOptions)
UnityEditor.IMGUI.Controls.TreeView.SortItemIDsInRowOrder(System.Collections.Generic.IList<System.Int32>)
UnityEditor.IMGUI.Controls.TreeView.CenterRectUsingSingleLineHeight(UnityEngine.Rect)
UnityEditor.IMGUI.Controls.TreeView.AddExpandedRows(UnityEditor.IMGUI.Controls.TreeViewItem, System.Collections.Generic.IList<UnityEditor.IMGUI.Controls.TreeViewItem>)
UnityEditor.IMGUI.Controls.TreeView.RenameEnded(UnityEditor.IMGUI.Controls.TreeView.RenameEndedArgs)
UnityEditor.IMGUI.Controls.TreeView.CanStartDrag(UnityEditor.IMGUI.Controls.TreeView.CanStartDragArgs)
UnityEditor.IMGUI.Controls.TreeView.SetupDragAndDrop(UnityEditor.IMGUI.Controls.TreeView.SetupDragAndDropArgs)
UnityEditor.IMGUI.Controls.TreeView.HandleDragAndDrop(UnityEditor.IMGUI.Controls.TreeView.DragAndDropArgs)
UnityEditor.IMGUI.Controls.TreeView.SetupParentsAndChildrenFromDepths(UnityEditor.IMGUI.Controls.TreeViewItem, System.Collections.Generic.IList<UnityEditor.IMGUI.Controls.TreeViewItem>)
UnityEditor.IMGUI.Controls.TreeView.IsChildListForACollapsedParent(System.Collections.Generic.IList<UnityEditor.IMGUI.Controls.TreeViewItem>)
Namespace: UnityEditor.MARS.Simulation
Syntax
[MovedFrom("Unity.MARS")]
public class HierarchyTreeView : TreeView
Constructors
HierarchyTreeView(TreeViewState, HierarchyState, Boolean, Boolean)
Declaration
public HierarchyTreeView(TreeViewState treeViewState, HierarchyState hierarchyState, bool isEnvironmentHierarchy, bool needsStateCached)
Parameters
Type | Name | Description |
---|---|---|
TreeViewState | treeViewState | |
HierarchyState | hierarchyState | |
Boolean | isEnvironmentHierarchy | |
Boolean | needsStateCached |
Properties
horizontalOffset
Offset for tree view GUI drawing, used for horizontal scrolling
Declaration
public float horizontalOffset { get; protected set; }
Property Value
Type | Description |
---|---|
Single |
MaxHeight
Declaration
public float MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
Single |
selectedRowY
Declaration
public float selectedRowY { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
BuildRoot()
Declaration
protected override TreeViewItem BuildRoot()
Returns
Type | Description |
---|---|
TreeViewItem |
Overrides
BuildRows(TreeViewItem)
Declaration
protected override IList<TreeViewItem> BuildRows(TreeViewItem treeRoot)
Parameters
Type | Name | Description |
---|---|---|
TreeViewItem | treeRoot |
Returns
Type | Description |
---|---|
IList<TreeViewItem> |
Overrides
CacheState()
Declaration
public void CacheState()
DoubleClickedItem(Int32)
Declaration
protected override void DoubleClickedItem(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id |
Overrides
DrawScrollingTreeView(Vector2, ref Boolean, Boolean)
Declaration
public Vector2 DrawScrollingTreeView(Vector2 scrollPosition, ref bool scrollToSelected, bool enabled)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | scrollPosition | |
Boolean | scrollToSelected | |
Boolean | enabled |
Returns
Type | Description |
---|---|
Vector2 |
Finalize()
Declaration
protected void Finalize()
GetAncestors(Int32)
Declaration
protected override IList<int> GetAncestors(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id |
Returns
Type | Description |
---|---|
IList<Int32> |
Overrides
GetDescendantsThatHaveChildren(Int32)
Declaration
protected override IList<int> GetDescendantsThatHaveChildren(int id)
Parameters
Type | Name | Description |
---|---|---|
Int32 | id |
Returns
Type | Description |
---|---|
IList<Int32> |
Overrides
PingObjects(Transform[])
Declaration
public static void PingObjects(Transform[] selection)
Parameters
Type | Name | Description |
---|---|---|
Transform[] | selection |
RestoreState()
Declaration
public void RestoreState()
RowGUI(TreeView.RowGUIArgs)
Declaration
protected override void RowGUI(TreeView.RowGUIArgs args)
Parameters
Type | Name | Description |
---|---|---|
TreeView.RowGUIArgs | args |
Overrides
UnityEditor.IMGUI.Controls.TreeView.RowGUI(UnityEditor.IMGUI.Controls.TreeView.RowGUIArgs)
SelectionChanged(IList<Int32>)
Declaration
protected override void SelectionChanged(IList<int> selectedIds)
Parameters
Type | Name | Description |
---|---|---|
IList<Int32> | selectedIds |
Overrides
UnityEditor.IMGUI.Controls.TreeView.SelectionChanged(System.Collections.Generic.IList<System.Int32>)
UnsetPing()
Declaration
public static void UnsetPing()