TransformTreeView Class

Summary

A UnityEditor.IMGUI.Controls.TreeView for displaying UnityEngine.Transforms alongside other data.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion.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 FlexiMotion.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

Extension Methods

Name Value Summary
LogTemp<TransformTreeView>(Object) T
Debug.Log(message, context) with an [System.ObsoleteAttribute] warning so you remember to remove any calls.
SafeGetHashCode<TransformTreeView>() int
Uses System.Collections.Generic.EqualityComparer`1.Default to get a hash code.