FadeMode.

FixedDuration Field

Summary

Calculate the fade speed to bring the Animancer.AnimancerNode.Weight to the target value over the specified fade duration (in seconds).
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
FadeMode

Syntax

FixedDuration

Examples

A fade duration of 0.5 would make the fade last for 0.5 seconds, regardless of how long the animation is.

This is generally the same as Animancer.FadeMode.FixedSpeed, but differs when starting the fade from a non-zero Animancer.AnimancerNode.Weight:
  • Fade Duration: 0.25
  • To fade from 0 to 1 with either mode would get a speed of 4 and take 0.25 seconds
  • To fade from 0.5 to 1 with would get a speed of 2 and take 0.25 seconds. It has half the distance to cover so it goes half as fast to maintain the expected duration.
  • To fade from 0.5 to 1 with would get a speed of 4 and take 0.125 seconds. It gets the same speed regardless of the distance to cover, so with less distance it completes faster.

Remarks

This was how fading worked prior to the introduction of Animancer.FadeModes in Animancer v4.0.

Constant Value

Value Type
1 Int32