SpringDefinitionsWindow Class

Summary

An FlexiMotion.Editor.TransformTreeWindow`2 for editing spring definitions.
graph BT Type-->Base0["TransformTreeWindow<IFlexiMotionComponent, SpringDefinitions>"] Base0-->Base1["EditorWindow"] Type-.->Interface0["ITransformTreeViewSource"] click Interface0 "/flexi-motion/api/FlexiMotion.Editor/ITransformTreeViewSource" Type["SpringDefinitionsWindow"] class Type type-node

Syntax

public class SpringDefinitionsWindow : 
    TransformTreeWindow<IFlexiMotionComponent, SpringDefinitions>, ITransformTreeViewSource

Properties

Name Value Summary
TargetDefinition SpringDefinitions
The FlexiMotion.Editor.TransformTreeWindow`2.Definition field of the FlexiMotion.Editor.TransformTreeWindow`2.Target.
Transforms IList<Transform>
The objects to show in the view.

Methods

Name Value Summary
CreateColumns(float) MultiColumnHeaderState.Column[]
Creates the columns for the FlexiMotion.Editor.TransformTreeWindow`2.TreeView to use.
DrawCellGUI(Rect, int, int, TreeViewItem, bool) void
Draws a cell in the UnityEditor.IMGUI.Controls.TreeView.
GetChainColor(Transform, IList<Transform>, float) Color
Returns a color based on the name of the `transform`'s highest included parent.
static
GetChainRoot(Transform, IList<Transform>) Transform
Gets the highest parent of `transform` which is included in the `transforms`.
static
GetRowColor(TreeViewItem) Color
Gets the color of a row in the FlexiMotion.Editor.TransformTreeWindow`2.TreeView.
Initialize() void
Initializes this window if the FlexiMotion.Editor.TransformTreeWindow`2.Target has been set.
OnDisable() void
Cleans up this window.
OnEnable() void
Initializes this window.
OnGUI() void
Draws the GUI of this window.
SetIncluded(int, int, bool) void
Adds or removes an item from the FlexiMotion.Editor.TransformTreeWindow`2.Definition.

Extension Methods

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