TransitionModifierGroup Class

Summary

An Animancer.ITransition and a dictionary to modify it based on the previous state.
graph BT Type-->Base0["Object"] Type-.->Interface0["ICloneable<TransitionModifierGroup>"] Type-.->Interface1["ICopyable<TransitionModifierGroup>"] Type["TransitionModifierGroup"] class Type type-node

Syntax

public class TransitionModifierGroup : ICloneable<TransitionModifierGroup>, 
    ICopyable<TransitionModifierGroup>

Remarks

Documentation: Transition Libraries

Constructors

Name Summary
TransitionModifierGroup(int, ITransition) Creates a new Animancer.TransitionLibraries.TransitionModifierGroup.

Fields

Name Constant Value Summary
Index
The index at which this group was added to its Animancer.TransitionLibraries.TransitionLibrary.

Properties

Name Value Summary
FromKeyToFadeDuration Dictionary<Object, float>
Custom Animancer.ITransition.FadeDurations to use when playing the Animancer.TransitionLibraries.TransitionModifierGroup.Transition depending on the Animancer.IHasKey.Key of the source state it is coming from.
Transition ITransition
The target transition of this group.

Methods

Name Value Summary
Clone(CloneContext) TransitionModifierGroup
Creates a new object with the same type and values this.
CopyFrom(TransitionModifierGroup, CloneContext) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
GetFadeDuration(Object) float
Returns the fade duration to use when transitioning from `from` to the Animancer.TransitionLibraries.TransitionModifierGroup.Transition.
ResetFadeDuration(Object) void
Removes the fade duration modifier set for transitioning from `from` to the Animancer.TransitionLibraries.TransitionModifierGroup.Transition.
SetFadeDuration(Object, float) void
Sets the `fadeDuration` to use when transitioning from `from` to the Animancer.TransitionLibraries.TransitionModifierGroup.Transition.
ToString() string
Describes this object.