Gomi91
Then I can call SetAnimation() on AnimationState object, and use the very same Track index, set the alpha of the two EntryTrack and the result eventually is a blend of the two animations.
Hmmm, I am not sure how that could be the result, because as you mentioned, a track can only play one animation. It is not possible to have two animations on track 1 at the same time and have them blend together. However, since you can queue animations on the same track, it is possible to have multiple animations set in sequence and blend them together during mixing. As far as I can see from your code, you set the two animations for the same track by SetAnimation
, not AddAnimation
, so simply only the last animation applied (Down) should remain on that track, but if you have other parts of the code that re-set the animations, then the mix may have occurred many times, resulting in the appearance of blending.
In any case, it generally does not make sense to set animations for the same track at the same time with SetAnimation, so this practice should be avoided.
By the way, as noted in the documentation, the returned track entries will only be valid until the corresponding animation is removed from the underlying animation state. After a dispose
event is received for a track entry, it should no longer be stored or accessed.