FlexiMotionDefinition Class

Summary

[System.SerializableAttribute] Data from which a FlexiMotion.FlexiMotionRuntime can be initialized.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["ICopyable<FlexiMotionDefinition>"] Type-.->Interface1["ISerializationCallbackReceiver"] Type["FlexiMotionDefinition"] class Type type-node

Syntax

[Serializable]
public class FlexiMotionDefinition : ICopyable<FlexiMotionDefinition>, 
    ISerializationCallbackReceiver

Attributes

Type Description
SerializableAttribute

Properties

Name Value Summary
ActionOnDisable ActionOnDisable
[UnityEngine.SerializeField] Determines what happens when the FlexiMotion.FlexiMotionComponent component is disabled or its UnityEngine.GameObject becomes inactive (i.e. in OnDisable).
Springs SpringDefinitions
[UnityEngine.SerializeField] Details of the individual simulated objects.
UpdateMode AnimatorUpdateMode
[UnityEngine.SerializeField] Determines when the simulation will be updated and how its delta time is calculated.
UpdatesPerSecond float
[UnityEngine.SerializeField] Determines how often the simulation will be updated.

Methods

Name Value Summary
CopyFrom(FlexiMotionDefinition) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
Equals(FlexiMotionDefinition) bool
Are all fields in this object equal to the equivalent fields in `other`?
Equals(Object) bool
Are all fields in this object equal to the equivalent fields in `obj`?
GetHashCode() int
Returns a hash code based on the values of this object's fields.
OnDisable(IFlexiMotionComponent) void
Executes the FlexiMotion.FlexiMotionDefinition.ActionOnDisable.
OnReEnable(FlexiMotionRuntime) void
Handles any necessary operations for the FlexiMotion.FlexiMotionDefinition.ActionOnDisable when the `runtime` will be enabled after having previously been disabled (i.e. not the first time it's enabled after being created).

Operators

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

Extension Methods

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