FadeMode.

FixedSpeed Field

Summary

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.
Assembly
Animancer.dll
Namespace
Animancer
Containing Type
FadeMode

Syntax

FixedSpeed

Remarks

Example: 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.FixedDuration but differs when starting the fade from a non-zero Animancer.AnimancerNode.Weight, for example:
  • 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.

Constant Value

Value Type
0 Int32