SphereColliderDefinitions Class

Summary

[System.SerializableAttribute] Data from which a FlexiMotion.Modifiers.RuntimeSphereColliders can be initialized.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion.Modifiers
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["ICopyable<SphereColliderDefinitions>"] Type-.->Interface1["IValidatable"] click Interface1 "/flexi-motion/api/FlexiMotion/IValidatable" Type["SphereColliderDefinitions"] class Type type-node

Syntax

[Serializable]
public class SphereColliderDefinitions : ICopyable<SphereColliderDefinitions>, IValidatable

Attributes

Type Description
SerializableAttribute

Fields

Name Constant Value Summary
SpheresField _Spheres
The name of the serialized backing field of FlexiMotion.Modifiers.SphereColliderDefinitions.Spheres.
static
TransformsField _Transforms
The name of the serialized backing field of FlexiMotion.Modifiers.SphereColliderDefinitions.Transforms.
static

Properties

Name Value Summary
Count int
The number of colliders.
Spheres SphereDefinition[]
The details of each collider.
Transforms Transform[]
The UnityEngine.Transform of each collider.

Methods

Name Value Summary
Add(Transform, SphereDefinition) int
Adds a new collider.
CopyFrom(SphereColliderDefinitions) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
Equals(Object) bool
Are all fields in this object equal to the equivalent in `obj`?
Equals(SphereColliderDefinitions) 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.
GetUsedBones() IEnumerable<Transform>
Returns the objects that are used by this modifier.
Remove(int) void
Removes the collider at the specified `index`.
RemoveMissing() bool
Removes any colliders with no UnityEngine.Transform and returns true if any were removed.
TryGet(int, Transform, SphereDefinition) bool
If a collider exists at the specified `index` and has a UnityEngine.Transform, this method outputs its details and returns true.
Validate() bool
Ensures that this object's fields have valid values and returns true if anything was changed.

Operators

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

Extension Methods

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