- Home /
Animator Skipping Frames
I have a UI.Image animation with 53 frames in it. (Unity says: Length 53.000, 1 FPS)
I set the frame via:
_anim = GetComponent<Animator>();
_anim.Play("myAnim", -1, index / 53);
_anim.speed = 0f;
The animation is setup with a sample of 1 FPS. Some frames simply get skipped. That is, an index of 14 for example will render the same as 15, skipping 14. 14/53 and 15/53 set the same frame. The 14th frame is clearly visible in the Animation window.
15.0f/53.0f renders frame 14, but 15.1f/53.0f renders frame 15
Comment
Your answer
Follow this Question
Related Questions
Correct way to use mecanim and AddMixingTransform? 1 Answer
C# Help with setting up jump animation 0 Answers
Animation in edit mode with Mecanim 0 Answers
Proper handling of animation events when setting normalised time 0 Answers
How to switch between procedural animation to Mecanim / Animator animations 0 Answers