MixerTransition<TMixer, TParameter> 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["ManualMixerTransition<TMixer>"] Base0-->Base1["Transition<TMixer>"] Base1-->Base2["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-.->Interface12["ICopyable<MixerTransition<TMixer, TParameter>>"] Type["MixerTransition<TMixer, TParameter>"] class Type type-node Derived0["MixerTransition2D"]-->Type click Derived0 "/animancer/api/Animancer/MixerTransition2D" Derived1["LinearMixerTransition"]-->Type click Derived1 "/animancer/api/Animancer/LinearMixerTransition"

Syntax

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

Remarks

Documentation: Transitions

Attributes

Type Description
SerializableAttribute

Type Parameters

Name Description
TMixer
TParameter

Fields

Name Constant Value Summary
DefaultParameterField _DefaultParameter
The name of the serialized backing field of Animancer.MixerTransition`2.DefaultParameter.
static
ThresholdsField _Thresholds
The name of the serialized backing field of Animancer.MixerTransition`2.Thresholds.
static

Properties

Name Value Summary
DefaultParameter TParameter
[UnityEngine.SerializeField] The initial parameter value to give the mixer when first created.
Thresholds TParameter[]
[UnityEngine.SerializeField] The parameter values at which each of the states are used and blended.

Methods

Name Value Summary
CopyFrom(ManualMixerTransition<TMixer>, CloneContext) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
CopyFrom(MixerTransition<TMixer, TParameter>, 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.