Hi,
I can add queued animations using AnimationState.AddAnimation(..), and the documentation says it adds this new requested animation to the current pile of queued animations. I cant find anywhere in the docs on how to actually clear that queue- all I can seem to find is setEmptyAnimation() and clearTrack(), both of which seem to end the CURRENTLY playing animation.
Just would like to know how to clear those queued animations please!
edit
I really can't find anything that does this, I have temporarily added my own function to AnimationState.cs which seems to work (safely i think.. maybe). My only concern at this point is if this is called during some mixing to the next state - is there any way I could get a confirmation on wehter this is safe to use or not, or if there is an official way?
public void ClearQueuedTracksForCurrentTrack(int trackIndex)
{
// Get current
if (tracks.Items[trackIndex] != null)
// Clear next
tracks.Items[trackIndex].next = null;
}