AnimancerTransition<T> Class

Summary

An Animancer.AnimancerTransition which uses a generic field for its Animancer.ITransition.
graph BT Type-->Base0["AnimancerTransition"] click Base0 "/animancer/api/Animancer/AnimancerTransition" Base0-->Base1["ScriptableObject"] Type-.->Interface0["ITransition"] click Interface0 "/animancer/api/Animancer/ITransition" Type-.->Interface1["IHasKey"] click Interface1 "/animancer/api/Animancer/IHasKey" Type-.->Interface2["IAnimationClipSource"] Type["AnimancerTransition<T>"] class Type type-node Derived0["Float2ControllerTransition"]-->Type click Derived0 "/animancer/api/Animancer/Float2ControllerTransition" Derived1["Float3ControllerTransition"]-->Type click Derived1 "/animancer/api/Animancer/Float3ControllerTransition" Derived2["ClipTransition"]-->Type click Derived2 "/animancer/api/Animancer/ClipTransition" Derived3["LinearMixerTransition"]-->Type click Derived3 "/animancer/api/Animancer/LinearMixerTransition" Derived4["ControllerTransition"]-->Type click Derived4 "/animancer/api/Animancer/ControllerTransition" Derived5["ManualMixerTransition"]-->Type click Derived5 "/animancer/api/Animancer/ManualMixerTransition" Derived6["MixerTransition2D"]-->Type click Derived6 "/animancer/api/Animancer/MixerTransition2D" Derived7["PlayableAssetTransition"]-->Type click Derived7 "/animancer/api/Animancer/PlayableAssetTransition" Derived8["Float1ControllerTransition"]-->Type click Derived8 "/animancer/api/Animancer/Float1ControllerTransition"

Syntax

[HelpURL(Strings.DocsURLs.APIDocumentation + "/" + nameof(AnimancerTransition) + "_1")]
public class AnimancerTransition<T> : AnimancerTransition, ITransition, IHasKey, 
    IAnimationClipSource
    where T : ITransition

Remarks

Documentation: Transition Assets

Attributes

Type Description
HelpURLAttribute

Type Parameters

Name Description
T

Properties

Name Value Summary
FadeDuration float
Wraps Animancer.ITransition.FadeDuration.
Inherited from AnimancerTransition
FadeMode FadeMode
Wraps Animancer.ITransition.FadeMode.
Inherited from AnimancerTransition
Key Object
Wraps Animancer.IHasKey.Key.
Inherited from AnimancerTransition
Transition T
[UnityEngine.SerializeField] The Animancer.ITransition wrapped by this UnityEngine.ScriptableObject.

WARNING: the Animancer.AnimancerState.Transition`1.State holds the post recently played state, so if you are sharing this transition between multiple objects it will only remember one of them.

You can use Animancer.AnimancerPlayable.StateDictionary.GetOrCreate(Animancer.ITransition) or Animancer.AnimancerLayer.GetOrCreateState(Animancer.ITransition) to get or create the state for a specific object.

Methods

Name Value Summary
Apply(AnimancerState) void
Wraps Animancer.ITransition.Apply(Animancer.AnimancerState).
Inherited from AnimancerTransition
CreateState() AnimancerState
Wraps Animancer.ITransition.CreateState.
Inherited from AnimancerTransition
GetAnimationClips(List<AnimationClip>) void
Wraps Animancer.AnimancerUtilities.GatherFromSource(System.Collections.Generic.ICollection{UnityEngine.AnimationClip},System.Object).
Inherited from AnimancerTransition
GetTransition() ITransition
Returns the Animancer.ITransition wrapped by this UnityEngine.ScriptableObject.