[AnimationState] Wildcard for AnimationState mix data.
Sometimes, you always want a specific animation to start without mix, or end without a mix, so you need to set its mix duration to 0 when you play that animation, or play something from it.
Or you want a specific animation to start playing with a certain mix duration regardless of what animation came before it.
It would be convenient if we could define this in AnimationStateData.
http://esotericsoftware.com/forum/Set-mixing-to-value-for-all-animations-9030
Would setting start/end mix for an animation overwrite mix durations set for animation pairs?
Logically, I think the checks would be in this order/priority:
- animation pair (animationA->animationB)
- to wildcard (animationA->*)
- from wildcard (* -> animationB)
- default mix
On the other hand... that already sounds messy.
Evaluation order looks good. API works like this:
setMix("a", null, 0.2);
setMix(null, "a", 0.2);
Hurray...
We currently have no ETA for this. But you can make do without this, currently. It's just that the AnimationState doesn't do it for you out of the box.
To do this yourself, you would just check the value of the currently playing animation, and the next animation you want to play, and then set the mixDuration of the returned TrackEntry (from your setAnimation call) accordingly.