AnimancerTransition Class

Summary

A UnityEngine.ScriptableObject based Animancer.ITransitions which can create a Animancer.ClipState when passed into Animancer.AnimancerPlayable.Play(Animancer.ITransition).
Assembly
Animancer.dll
Namespace
Animancer
Interfaces
Base Types
  • ScriptableObject
Derived Types
graph BT Type-->Base0["ScriptableObject"] Type-.->Interface0["ITransition"] click Interface0 "/animancer/api/Animancer/ITransition" Type-.->Interface1["IHasKey"] click Interface1 "/animancer/api/Animancer/IHasKey" Type-.->Interface2["IAnimationClipSource"] Type["AnimancerTransition"] class Type type-node Derived0["AnimancerTransition<T>"]-->Type click Derived0 "/animancer/api/Animancer/AnimancerTransition_1"

Syntax

[HelpURL(Strings.APIDocumentationURL + "/" + nameof(AnimancerTransition))]
public abstract class AnimancerTransition : ScriptableObject, ITransition, IHasKey, 
    IAnimationClipSource

Remarks

When adding a UnityEngine.CreateAssetMenuAttribute to any derived classes, you can use Animancer.Strings.MenuPrefix and Animancer.Strings.AssetMenuOrder.

Attributes

Type Description
HelpURLAttribute

Properties

Name Value Summary
FadeDuration float
Wraps Animancer.ITransition.FadeDuration.
FadeMode FadeMode
Wraps Animancer.ITransition.FadeMode.
Key Object
Wraps Animancer.IHasKey.Key.

Methods

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