I'm trying to pause an animation when I get an event via the runtime API so that the animation will stop at a specific frame, but the animation does not always stop at the correct frame. I'm doing something similar to code below. Is there a better way to pause an animation so that it always stops at that same frame, because what I'm doing right now doesn't seem to be working.
void OnAnimationStateEvent(TrackEntry trackentry, Event e)
{
mySkeletonAnimation.AnimationState.Tracks.Items[0].TimeScale = 0;
}