Animancer v6.0 is currently available for testing.

FadeMode Enum

Summary

Determines how Animancer.AnimancerLayer.Play(Animancer.AnimancerState,System.Single,Animancer.FadeMode) works.
Assembly
Animancer.dll
Namespace
Animancer
Base Types
  • Enum
graph BT Type-->Base0["Enum"] Type["FadeMode"] class Type type-node

Syntax

public enum FadeMode

Remarks

Documentation: Fading

Fields

Name Constant Value Summary
FixedDuration 1
Calculate the fade speed to bring the Animancer.AnimancerNode.Weight to the target value over the specified fade duration (in seconds).
static
FixedSpeed 0
Calculate the fade speed to bring the Animancer.AnimancerNode.Weight from 0 to 1 over the specified fade duration (in seconds), regardless of the actual starting weight.
static
FromStart 2
If the state is not currently at 0 Animancer.AnimancerNode.Weight, this mode will use Animancer.AnimancerLayer.GetOrCreateWeightlessState(Animancer.AnimancerState) to get a copy of it that is at 0 weight so it can fade the copy in while the original fades out with all other states.

Using this mode repeatedly on subsequent frames will probably have undesirable effects because it will create a new state each time. In such a situation you most likely want Animancer.FadeMode.FixedSpeed instead.

This mode only works for Animancer.ClipStates.
static
NormalizedDuration 4
Like Animancer.FadeMode.FixedDuration, except that the fade duration is multiplied by the animation length.
static
NormalizedFromStart 5
Like Animancer.FadeMode.FromStart, except that the fade duration is multiplied by the animation length.
static
NormalizedSpeed 3
Like Animancer.FadeMode.FixedSpeed, except that the fade duration is multiplied by the animation length.
static