TransitionAssetReference Class

Summary

A [System.SerializableAttribute] wrapper around an Animancer.TransitionAssetBase.
Assembly
Animancer.dll
Namespace
Animancer
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IAnimationClipSource"] Type-.->Interface1["ICopyable<TransitionAssetReference>"] Type-.->Interface2["ITransitionDetailed"] click Interface2 "/animancer/api/Animancer/ITransitionDetailed" 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["IWrapper"] click Interface6 "/animancer/api/Animancer/IWrapper" Type["TransitionAssetReference"] class Type type-node

Syntax

[Serializable]
public class TransitionAssetReference : IAnimationClipSource, ICopyable<TransitionAssetReference>, 
    ITransitionDetailed, ITransition, IHasKey, IPolymorphic, IWrapper

Remarks

This allows Transition Assets to be referenced inside [UnityEngine.SerializeReference] fields which can't directly reference UnityEngine.Objects.

Documentation: Transition Assets

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
TransitionAssetReference() Creates a new Animancer.TransitionAssetReference.
TransitionAssetReference(TransitionAssetBase) Creates a new Animancer.TransitionAssetReference.

Properties

Name Value Summary
Asset TransitionAssetBase
[UnityEngine.SerializeField] The wrapped Transition Asset.
FadeDuration float
The amount of time this transition should take (in seconds).
FadeMode FadeMode
The Animancer.FadeMode which should be used when this transition is passed into Animancer.AnimancerLayer.Play(Animancer.ITransition).
IsLooping bool
What will the value of Animancer.AnimancerState.IsLooping be for the created state?
IsValid bool
Can this transition create a valid Animancer.AnimancerState?
Key Object
A key which can be used in dictionaries and hash sets.
MaximumDuration float
The maximum amount of time the animation is expected to take (in seconds).
NormalizedStartTime float
The Animancer.AnimancerState.NormalizedTime to start the animation at.
Speed float
The Animancer.AnimancerNodeBase.Speed to play the animation at.

Methods

Name Value Summary
Apply(AnimancerState) void
Applies the details of this transition to the `state`.
CopyFrom(TransitionAssetReference, CloneContext) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
CreateState() AnimancerState
Creates and returns a new Animancer.AnimancerState defuned by this transition.
GetAnimationClips(List<AnimationClip>) void
[UnityEngine.IAnimationClipSource] Calls Animancer.AnimancerUtilities.GatherFromSource(System.Collections.Generic.ICollection{UnityEngine.AnimationClip},System.Object).
ToString() string
Describes the Animancer.TransitionAssetReference.Asset.