TransformTreeWindow<TObject, TData> Class

Summary

[Editor-Only] A Animancer.Editor.SerializedComponentDataEditorWindow`2 which displays a Animancer.Editor.TransformTreeView.
graph BT Type-->Base0["SerializedComponentDataEditorWindow<TObject, TData>"] Base0-->Base1["SerializedDataEditorWindow<TObject, TData>"] Base1-->Base2["EditorWindow"] Type-.->Interface0["ITransformTreeViewSource"] click Interface0 "/animancer/api/Animancer.Editor/ITransformTreeViewSource" Type["TransformTreeWindow<TObject, TData>"] class Type type-node Derived0["WeightedMaskLayersDefinitionWindow"]-->Type click Derived0 "/animancer/api/Animancer.Editor/WeightedMaskLayersDefinitionWindow"

Syntax

public abstract class TransformTreeWindow<TObject, TData> : 
    SerializedComponentDataEditorWindow<TObject, TData>, ITransformTreeViewSource
    where TObject : Component where TData : class, ICopyable<TData>, IEquatable<TData>, new()

Type Parameters

Name Description
TObject
TData

Properties

Name Value Summary
HeaderState MultiColumnHeaderState
The header of the tree view.
Root Transform
The object at the top of the target hierarchy.
Transforms IList<Transform>
The objects to show in the view.
TreeView TransformTreeView
The view used to display the Animancer.Editor.SerializedDataEditorWindow`2.Data.

Methods

Name Value Summary
AddItem(int, TreeViewItem, Transform) TreeViewItem
Adds an item for the `transform` to be displayed in the view.
AddItems(int, TreeViewItem) void
Adds the items to be displayed in the view.
BeforeRowGUI(Rect, TreeViewItem) void
Called before a row is drawn.
CaptureData() void
CreateColumn(string, string, float) MultiColumnHeaderState.Column
Creates a column for the Animancer.Editor.TransformTreeWindow`2.TreeView to use.
static
CreateColumns(float) MultiColumnHeaderState.Column[]
Creates the columns for the Animancer.Editor.TransformTreeWindow`2.TreeView to use.
CreateHeader() void
Calls Animancer.Editor.TransformTreeWindow`2.CreateColumns(System.Single) and initializes the tree view header.
DoFooterCenterGUI() void
Draws additional GUI controls in the center of the footer.
DoFooterGUI() void
Draws the GUI at the bottom of this window.
DrawCellGUI(Rect, int, int, TreeViewItem, bool) void
Draws a cell in the UnityEditor.IMGUI.Controls.TreeView.
DrawIsIncludedCellGUI(Rect, int, int, bool) void
Draws a cell to toggle whether a particular item is included or not.
DrawTransformCellGUI(Rect, Transform) void
Draws a UnityEngine.Transform cell.
GetDefinitionIndex(int) int
Gets the index in the Animancer.Editor.SerializedDataEditorWindow`2.Data corresponding to a row in the Animancer.Editor.TransformTreeWindow`2.TreeView. Returns -1 if the row isn't included.
GetRowColor(TreeViewItem) Color
Gets the color of a row in the Animancer.Editor.TransformTreeWindow`2.TreeView.
Initialize() void
Initializes this window if the Animancer.Editor.SerializedDataEditorWindow`2.SourceObject has been set.
OnDisable() void
Cleans up this window.
OnEnable() void
Initializes this window.
OnGUI() void
Draws the GUI of this window.
Revert() void
Restores the Animancer.Editor.SerializedDataEditorWindow`2.Data to the original values from the Animancer.Editor.SerializedDataEditorWindow`2.SourceData.
SetIncluded(int, int, bool) void
Adds or removes an item from the Animancer.Editor.SerializedDataEditorWindow`2.Data.
SetValue(int, Action<int>) void
Sets the value of a field for all selected items.