- Home /
Question by
mohammad1369 · Jul 06, 2021 at 06:28 AM ·
animatormecanimanimationclipframelast
how to go to last frame of animation clip immediately?
hi there i have an animation clip pre start game, how can i go the last frame if player touch screen or click button? thank you
Comment
Answer by Anonymous620 · Jul 06, 2021 at 06:36 AM
Try this:
animation["myanimation"].time = 5
5 being the end frame of the animation
thank you , but i make animation clip in unity by mecanim and when i want to assign animation clip to animation variable in script, unity doesn't accept it as animation.
As you can read HERE, you can transform mecanim animations into clips simply creating a new clip and copy-paste the values.