I'm talking about the MixDuration of high level TrackEntry to low level TrackEntry, not alpha.
Is there no way to transition the mix between the different tracks?
Mixing between animations on the same track is done using TrackEntry mixDuration
.
Mixing between animations on different tracks is done using TrackEntry alpha
. If you want the alpha
to change over time, you will need to adjust the value yourself.
There is another way to do it, which is to play an empty animation. See AnimationState addEmptyAnimation
. You can play an empty animation, mix to another animation, then mix out to an empty animation. When you do this on a higher track, the result is that you'll see the lower track animation, the higher animation will "fade in" over the lower track animation, then will "fade out" again.
同一轨道上的动画之间的混合是使用 TrackEntry mixDuration
完成的。
不同轨道上的动画之间的混合是使用 TrackEntry alpha
完成的。 如果您希望 alpha
随时间变化,则需要自行调整该值。
还有另一种方法,就是播放空动画。 请参见 AnimationState addEmptyAnimation
。 您可以播放一个空动画,混合到另一个动画,然后混合到一个空动画。 当您在较高的轨道上执行此操作时,结果是您将看到较低的轨道动画,较高的动画将“淡入”在较低的轨道动画上,然后再次“淡出”。