PlayableAssetState.

PlayableAssetState.Transition Class

Summary

A serializable Animancer.ITransition which can create a Animancer.PlayableAssetState when passed into Animancer.AnimancerPlayable.Play(Animancer.ITransition).
graph BT Type-->Base0["AnimancerState.Transition<PlayableAssetState>"] Base0-->Base1["Object"] Type-.->Interface0["ITransitionDetailed"] click Interface0 "/animancer/api/Animancer/ITransitionDetailed" Type-.->Interface1["ITransition"] click Interface1 "/animancer/api/Animancer/ITransition" Type-.->Interface2["IHasKey"] click Interface2 "/animancer/api/Animancer/IHasKey" Type-.->Interface3["IAnimationClipCollection"] click Interface3 "/animancer/api/Animancer/IAnimationClipCollection" Type["PlayableAssetState.Transition"] class Type type-node

Syntax

[Serializable]
public class PlayableAssetState.Transition : AnimancerState.Transition<PlayableAssetState>, 
    ITransitionDetailed, ITransition, IHasKey, IAnimationClipCollection

Remarks

Unfortunately the tool used to generate this documentation does not currently support nested types with identical names, so only one Transition class will actually have a documentation page.

Attributes

Type Description
SerializableAttribute

Properties

Name Value Summary
Asset PlayableAsset
[UnityEngine.SerializeField] The asset to play.
FadeMode FadeMode
If this transition will set the Animancer.AnimancerState.NormalizedTime, then it needs to use Animancer.FadeMode.FromStart.
Key Object
The Animancer.PlayableAssetState.Transition.Asset will be used as the Animancer.AnimancerState.Key for the created state to be registered with.
MaximumDuration float
[Animancer.ITransitionDetailed] The maximum amount of time the animation is expected to take (in seconds).
NormalizedStartTime float
[UnityEngine.SerializeField] Determines what Animancer.AnimancerState.NormalizedTime to start the animation at.

The default value is System.Single.NaN which indicates that this value is not used so the animation will continue from its current time.
Speed float
[UnityEngine.SerializeField] Determines how fast the animation plays (1x = normal speed, 2x = double speed).

Methods

Name Value Summary
Apply(AnimancerState) void
Called by Animancer.AnimancerPlayable.Play(Animancer.ITransition) to apply the Animancer.PlayableAssetState.Transition.Speed and Animancer.PlayableAssetState.Transition.NormalizedStartTime.
CreateState(AnimancerLayer) PlayableAssetState
Creates and returns a new Animancer.PlayableAssetState connected to the `layer`.

This method also assigns it as the Animancer.AnimancerState.Transition`1.State.