SphereHandle Struct

Summary

A wrapper for drawing spheres in the scene view.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion.Editor
Base Types
  • ValueType
graph BT Type-->Base0["ValueType"] Type["SphereHandle"] class Type type-node

Syntax

public struct SphereHandle : ValueType

Constructors

Name Summary
SphereHandle(Transform, Vector3, float, Color) Creates a new FlexiMotion.Editor.SphereHandle.

Fields

Name Constant Value Summary
color
The color of the sphere.
localPosition
The position of the sphere relative to the FlexiMotion.Editor.SphereHandle.transform.
radius
The size of the sphere.
transform
The object the sphere is attached to.

Properties

Name Value Summary
IsValid bool
Can this handle be drawn?
WorldPosition Vector3
The world position of the sphere.

Methods

Name Value Summary
DrawHandle() void
Draws the sphere using its FlexiMotion.Editor.SphereHandle.color.
DrawHandle(Color) void
Draws the sphere in the given `color`.
DrawHandles(IList<SphereHandle>) void
Calls FlexiMotion.Editor.SphereHandle.DrawHandle on each of the `spheres`.
static
Equals(Object) bool
Are all fields in this object equal to the equivalent fields in `obj`?
Equals(SphereHandle) bool
Are all fields in this object equal to the equivalent fields in `other`?
GetHashCode() int
Returns a hash code based on the values of this object's fields.

Operators

Name Value Summary
operator !=(SphereHandle, SphereHandle) bool
operator ==(SphereHandle, SphereHandle) bool

Extension Methods

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