ClipTransitionSequence Class

Summary

A group of Animancer.ClipTransitions which play one after the other.
graph BT Type-->Base0["ClipTransition"] click Base0 "/animancer-v7-4/api/Animancer/ClipTransition" Base0-->Base1["AnimancerTransition<ClipState>"] Base1-->Base2["Object"] Type-.->Interface0["ITransitionDetailed"] click Interface0 "/animancer-v7-4/api/Animancer/ITransitionDetailed" Type-.->Interface1["ITransitionWithEvents"] click Interface1 "/animancer-v7-4/api/Animancer/ITransitionWithEvents" Type-.->Interface2["IHasEvents"] click Interface2 "/animancer-v7-4/api/Animancer/IHasEvents" Type-.->Interface3["ICopyable<AnimancerTransition<ClipState>>"] Type-.->Interface4["ClipState.ITransition"] click Interface4 "/animancer-v7-4/api/Animancer/ITransition" Type-.->Interface5["ITransition<ClipState>"] Type-.->Interface6["ITransition"] click Interface6 "/animancer-v7-4/api/Animancer/ITransition" Type-.->Interface7["IHasKey"] click Interface7 "/animancer-v7-4/api/Animancer/IHasKey" Type-.->Interface8["IPolymorphic"] click Interface8 "/animancer-v7-4/api/Animancer/IPolymorphic" Type-.->Interface9["IMotion"] click Interface9 "/animancer-v7-4/api/Animancer/IMotion" Type-.->Interface10["IAnimationClipCollection"] click Interface10 "/animancer-v7-4/api/Animancer/IAnimationClipCollection" Type-.->Interface11["ICopyable<ClipTransition>"] Type-.->Interface12["ISerializationCallbackReceiver"] Type-.->Interface13["ICopyable<ClipTransitionSequence>"] Type["ClipTransitionSequence"] class Type type-node

Syntax

[Serializable]
public class ClipTransitionSequence : ClipTransition, ITransitionDetailed, ITransitionWithEvents, 
    IHasEvents, ICopyable<AnimancerTransition<ClipState>>, ClipState.ITransition, 
    ITransition<ClipState>, ITransition, IHasKey, IPolymorphic, IMotion, IAnimationClipCollection, 
    ICopyable<ClipTransition>, ISerializationCallbackReceiver, ICopyable<ClipTransitionSequence>

Remarks

Documentation: Transitions

Attributes

Type Description
SerializableAttribute

Fields

Name Constant Value Summary
ClipFieldName _Clip
The name of the serialized backing field of Animancer.ClipTransition.Clip.
Inherited from ClipTransition
static

Properties

Name Value Summary
AverageAngularSpeed float
The initial UnityEngine.Motion.averageAngularSpeed that the created state will have.
AverageVelocity Vector3
The initial UnityEngine.Motion.averageSpeed that the created state will have.
Clip AnimationClip
[UnityEngine.SerializeField] The animation to play.
Inherited from ClipTransition
EndEvent AnimancerEvent
The Animancer.AnimancerEvent.Sequence.EndEvent of the last transition in this sequence.
FadeMode FadeMode
If this transition will set the Animancer.AnimancerState.Time, then it needs to use Animancer.FadeMode.FromStart.
Inherited from ClipTransition
IsLooping bool
Is the last animation in this sequence looping?
IsValid bool
Is everything in this sequence valid?
Key Object
Returns the Animancer.ClipTransition.Clip to use as the Animancer.AnimancerState.Key.
Inherited from ClipTransition
LastTransition ClipTransition
The last of the Animancer.ClipTransitionSequence.Others (or this if there are none).
Length float
The length of the Animancer.ClipTransition.Clip (in seconds), accounting for the Animancer.ClipTransition.NormalizedStartTime and Animancer.AnimancerEvent.Sequence.NormalizedEndTime (but not Animancer.ClipTransition.Speed).
MainObject Object
The Animancer.AnimancerState.MainObject that the created state will have.
Inherited from ClipTransition
MaximumDuration float
NormalizedStartTime float
The Animancer.AnimancerState.NormalizedTime to start the animation at.
Inherited from ClipTransition
Others ClipTransition[]
[UnityEngine.SerializeField] The transitions to play in order after the first one.
Speed float
The Animancer.AnimancerNode.Speed to play the animation at.
Inherited from ClipTransition

Methods

Name Value Summary
AddEvent(float, bool, Action) void
Adds an event at the specified time relative to the entire sequence.
Apply(AnimancerState) void
Called by Animancer.AnimancerPlayable.Play(Animancer.ITransition) to apply any modifications to the `state`.
CopyFrom(ClipTransition) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
Inherited from ClipTransition
CopyFrom(ClipTransitionSequence) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
CreateState() ClipState
Creates and returns a new TState.
Inherited from ClipTransition
GatherAnimationClips(ICollection<AnimationClip>) void
Adds the Animancer.ClipTransition.Clip of everything in this sequence to the collection.