SphereColliderDefinitionsWindow Class

Summary

An FlexiMotion.Editor.TransformTreeWindow`2 for editing sphere colliders.
graph BT Type-->Base0["TransformTreeWindow<ISphereCollidersModifier, SphereColliderDefinitions>"] Base0-->Base1["EditorWindow"] Type-.->Interface0["ITransformTreeViewSource"] click Interface0 "/flexi-motion/api/FlexiMotion.Editor/ITransformTreeViewSource" Type["SphereColliderDefinitionsWindow"] class Type type-node

Syntax

public class SphereColliderDefinitionsWindow : 
    TransformTreeWindow<ISphereCollidersModifier, SphereColliderDefinitions>, 
    ITransformTreeViewSource

Properties

Name Value Summary
TargetDefinition SphereColliderDefinitions
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
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.
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.
GetDefinitionIndex(int) int
Gets the index in the FlexiMotion.Editor.TransformTreeWindow`2.Definition corresponding to a row in the FlexiMotion.Editor.TransformTreeWindow`2.TreeView. Returns -1 if the row isn't included.
GetRowColor(TreeViewItem) Color
Gets the color of a row in the FlexiMotion.Editor.TransformTreeWindow`2.TreeView.
GetTransformColor(Transform, float) Color
Returns a color based on the name of the `transform`.
static
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<SphereColliderDefinitionsWindow>(Object) T
Debug.Log(message, context) with an [System.ObsoleteAttribute] warning so you remember to remove any calls.
SafeGetHashCode<SphereColliderDefinitionsWindow>() int
Uses System.Collections.Generic.EqualityComparer`1.Default to get a hash code.