SphereColliderHandle Class

Summary

[Editor-Only] A custom transform gizmo for sphere colliders because they don't have an actual UnityEngine.Transform.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion.Editor
Interfaces
  • IDisposable
Base Types
graph BT Type-->Base0["CustomSceneGui"] click Base0 "/flexi-motion/api/FlexiMotion.Editor/CustomSceneGui" Base0-->Base1["Object"] Type-.->Interface0["IDisposable"] Type["SphereColliderHandle"] class Type type-node

Syntax

public class SphereColliderHandle : CustomSceneGui, IDisposable

Constructors

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

Events

Name Type Summary
OnSceneGui Action<SceneView>
The method which will be called by UnityEditor.SceneView.duringSceneGui.
Inherited from CustomSceneGui
RecordUndo Action
Records the current state of the target object so it can be undone later.

Fields

Name Constant Value Summary
SelectedIndices
The indices of the selected colliders in FlexiMotion.Modifiers.SphereColliderDefinitions.Transforms.

Properties

Name Value Summary
IsEnabled bool
Is this GUI currently visible in the UnityEditor.SceneView?
Inherited from CustomSceneGui

Methods

Name Value Summary
ApplySelection(SphereColliderDefinitions) void
Sets FlexiMotion.Editor.CustomSceneGui.IsEnabled based on whether there are any FlexiMotion.Editor.SphereColliderHandle.SelectedIndices.
Dispose() void
Disables this GUI and removes it from any systems it registered itself with.
GetMousePosition(SceneView) Vector2
Get the current mouse position corrected for the `sceneView`.
Inherited from CustomSceneGui
static

Extension Methods

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