TransformTreeView Class

Summary

A UnityEditor.IMGUI.Controls.TreeView for displaying UnityEngine.Transforms alongside other data.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Interfaces
  • IDisposable
Base Types
  • TreeView
graph BT Type-->Base0["TreeView"] Type-.->Interface0["IDisposable"] Type["TransformTreeView"] class Type type-node

Syntax

public class TransformTreeView : TreeView, IDisposable

Constructors

Name Summary
TransformTreeView(TreeViewState, MultiColumnHeader, ITransformTreeViewSource) Creates a new Animancer.Editor.TransformTreeView.

Events

Name Type Summary
OnSelectionChanged Action<IList<int>>
Called whenever the selected rows change.

Fields

Name Constant Value Summary
RootID 0
The ID of the root item.
static
Search
The field used to filter this view.
Source
The object which defines what to show in this view.
Transforms
The UnityEngine.Transform of each row in this view.

Methods

Name Value Summary
AddItem(int, TreeViewItem, Transform) TreeViewItem
Adds a new item for the `transform` as a child of the `parent` and increments the `id`.
AddItemRecursive(int, TreeViewItem, Transform) void
Adds a new item for each child of the `transform` recursively.
BuildRoot() TreeViewItem
CreateItem(int, int, string) TreeViewItem
Creates a new UnityEditor.IMGUI.Controls.TreeViewItem and increments the `id`.
static
Dispose() void
Cleans up this view.
DrawSearchField(Rect) void
Draws the UnityEditor.IMGUI.Controls.SearchField for filtering this view.
OnObjectSelectionChanged() void
Called whenever the UnityEditor.Selection.objects change.
RowGUI(TreeView.RowGUIArgs) void
SelectionChanged(IList<int>) void