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
-
- Object
- CustomSceneGui
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 |
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 |
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 |
Vector2 |
Get the current mouse position corrected for the `sceneView`.
Inherited from CustomSceneGui
static
|
Extension Methods
Name | Value | Summary |
---|---|---|
LogTemp |
T |
Debug.Log(message, context) with an [System.ObsoleteAttribute ] warning so you remember
to remove any calls.
From FMUtilities
|
SafeGetHashCode |
int |
Uses
System.Collections.Generic.EqualityComparer`1.Default to get a hash code.From FMUtilities
|