Summary
[Editor-Only]
A
Animancer.Editor.SerializedComponentDataEditorWindow`2
which displays a Animancer.Editor.TransformTreeView.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Interfaces
- Base Types
-
- EditorWindow
- Serialized
Data Editor Window <TObject, TData> - Serialized
Component Data Editor Window <TObject, TData>
- Derived Types
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 | Multi |
The header of the tree view.
|
| Root | Transform |
The object at the top of the target hierarchy.
|
| Transforms | IList |
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 |
TreeViewItem |
Adds an item for the `transform` to be displayed in the view.
|
| AddItems |
void |
Adds the items to be displayed in the view.
|
| BeforeRowGUI |
void |
Called before a row is drawn.
|
| CaptureData |
void | |
| CreateColumn |
Multi |
Creates a column for the
Animancer.Editor.TransformTreeWindow`2.TreeView to use.static
|
| CreateColumns |
Multi |
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 |
void |
Draws a cell in the
UnityEditor.IMGUI.Controls.TreeView. |
| Draw |
void |
Draws a cell to toggle whether a particular item is included or not.
|
| DrawTransformCellGUI |
void |
Draws a
UnityEngine.Transform cell. |
| GetDefinitionIndex |
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 |
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 |
void |
Adds or removes an item from the
Animancer.Editor.SerializedDataEditorWindow`2.Data. |
| SetValue |
void |
Sets the value of a field for all selected items.
|