ManualMixerTransition<TMixer> Class

Summary

A serializable Animancer.ITransition which can create a particular type of Animancer.AnimancerState when passed into Animancer.AnimancerLayer.Play(Animancer.ITransition).
graph BT Type-->Base0["Transition<TMixer>"] Base0-->Base1["Object"] Type-.->Interface0["ITransition<TMixer>"] Type-.->Interface1["ITransitionDetailed"] click Interface1 "/animancer/api/Animancer/ITransitionDetailed" Type-.->Interface2["ITransitionWithEvents"] click Interface2 "/animancer/api/Animancer/ITransitionWithEvents" Type-.->Interface3["ITransition"] click Interface3 "/animancer/api/Animancer/ITransition" Type-.->Interface4["IHasKey"] click Interface4 "/animancer/api/Animancer/IHasKey" Type-.->Interface5["IPolymorphic"] click Interface5 "/animancer/api/Animancer/IPolymorphic" Type-.->Interface6["IHasEvents"] click Interface6 "/animancer/api/Animancer/IHasEvents" Type-.->Interface7["ICopyable<Transition<TMixer>>"] Type-.->Interface8["ICloneable<Transition<TMixer>>"] Type-.->Interface9["IMotion"] click Interface9 "/animancer/api/Animancer/IMotion" Type-.->Interface10["IAnimationClipCollection"] click Interface10 "/animancer/api/Animancer/IAnimationClipCollection" Type-.->Interface11["ICopyable<ManualMixerTransition<TMixer>>"] Type["ManualMixerTransition<TMixer>"] class Type type-node Derived0["MixerTransition<TMixer, TParameter>"]-->Type click Derived0 "/animancer/api/Animancer/MixerTransition_2" Derived1["ManualMixerTransition"]-->Type click Derived1 "/animancer/api/Animancer/ManualMixerTransition"

Syntax

[Serializable]
public abstract class ManualMixerTransition<TMixer> : Transition<TMixer>, ITransition<TMixer>, 
    ITransitionDetailed, ITransitionWithEvents, ITransition, IHasKey, IPolymorphic, IHasEvents, 
    ICopyable<Transition<TMixer>>, ICloneable<Transition<TMixer>>, IMotion, 
    IAnimationClipCollection, ICopyable<ManualMixerTransition<TMixer>>
    where TMixer : ManualMixerState

Remarks

Documentation: Transitions

Attributes

Type Description
SerializableAttribute

Type Parameters

Name Description
TMixer

Fields

Name Constant Value Summary
AnimationsField _Animations
The name of the serialized backing field of Animancer.ManualMixerTransition`1.Animations.
static
SpeedsField _Speeds
The name of the serialized backing field of Animancer.ManualMixerTransition`1.Speeds.
static
SynchronizeChildrenField _SynchronizeChildren
The name of the serialized backing field of Animancer.ManualMixerTransition`1.SynchronizeChildren.
static

Properties

Name Value Summary
Animations Object[]
[UnityEngine.SerializeField] Objects that define how to create each state in the mixer.
AverageAngularSpeed float
The initial UnityEngine.Motion.averageAngularSpeed that the created state will have.
AverageVelocity Vector3
The initial UnityEngine.Motion.averageSpeed that the created state will have.
HasSpeeds bool
Are there at least enough Animancer.ManualMixerTransition`1.Speeds for each of theAnimancer.ManualMixerTransition`1.Animations?
IsLooping bool
[Animancer.ITransitionDetailed] Are any of the Animancer.ManualMixerTransition`1.Animations looping?
IsValid bool
Are all Animancer.ManualMixerTransition`1.Animations assigned?
MaximumDuration float
The maximum amount of time the animation is expected to take (in seconds).
Speeds float[]
[UnityEngine.SerializeField] The AnimancerNode.Speed to use for each state in the mixer.
SynchronizeChildren bool[]
[UnityEngine.SerializeField] The flags to be used in Animancer.ManualMixerState.InitializeSynchronizedChildren(System.Boolean[]).

Methods

Name Value Summary
Apply(AnimancerState) void
Applies the details of this transition to the `state`.
CopyFrom(ManualMixerTransition<TMixer>, CloneContext) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
CopyFrom(Transition<TMixer>, CloneContext) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
InitializeState() void
Initializes the Animancer.Transition`1.State immediately after it is created.