SphereVisualiser Class

Summary

A FlexiMotion.Editor.CustomSceneGui for spheres.
graph BT Type-->Base0["CustomSceneGui"] click Base0 "/flexi-motion/api/FlexiMotion.Editor/CustomSceneGui" Base0-->Base1["Object"] Type["SphereVisualiser"] class Type type-node Derived0["SpringVisualiser"]-->Type click Derived0 "/flexi-motion/api/FlexiMotion.Editor/SpringVisualiser" Derived1["SphereColliderVisualiser"]-->Type click Derived1 "/flexi-motion/api/FlexiMotion.Editor/SphereColliderVisualiser"

Syntax

public class SphereVisualiser : CustomSceneGui

Constructors

Name Summary
SphereVisualiser() Creates a new FlexiMotion.Editor.SphereVisualiser.

Events

Name Type Summary
OnSceneGui Action<SceneView>
The method which will be called by UnityEditor.SceneView.duringSceneGui.
Inherited from CustomSceneGui

Fields

Name Constant Value Summary
FrameSizeMultiplier 4
The multiplier for object size used to determine how far to zoom out when framing.
static
SphereAlpha 0.5
The default alpha to use for spheres.
static
SphereHandles
All of the handles currently being visualised.

Properties

Name Value Summary
IsEnabled bool
Is this GUI currently visible in the UnityEditor.SceneView?
Inherited from CustomSceneGui
Root Transform
The object at the top of the hierarchy which will be framed if no target is specified.
Target SphereHandle
The handle which the mouse is currently pointing at.

Methods

Name Value Summary
DoSceneGUI(SceneView) void
Draws the FlexiMotion.Editor.SphereVisualiser.SphereHandles and FlexiMotion.Editor.SphereVisualiser.Target.
GatherHandles() void
Updates the FlexiMotion.Editor.SphereVisualiser.SphereHandles list.
GetMousePosition(SceneView) Vector2
Get the current mouse position corrected for the `sceneView`.
Inherited from CustomSceneGui
static

Extension Methods

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