Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity - stop animation loop

How can I stop make unity continuous looping

what I have done

1- I add animator to my object.

2- I create animator controller

3- I create my animation

4- finally link my animation controller to my object

enter image description here

it works just fine , but it keep looping

how can I make it animate just once

like image 875
Mina Fawzy Avatar asked Aug 30 '15 13:08

Mina Fawzy


People also ask

How do I stop an animation halfway in unity?

The best thing you can do is: - From "Any state" to "Jump" (you should create a blend tree between Jump and Fall)--->in the arrow uncheck "Has exit time" and set up a new Bool "JumpBool" (for example). From "Jump" to "Idle" when "JumpBool" is false.

How do you pause animation in unity?

When you want to pause the animation you can say anim. speed = 0; and if you want to make it back to the normal speed you can type anim.


1 Answers

In your project panel select your animation and in inspector unCheck Loop Time property. That will stop looping your animation :)

like image 196
Nain Avatar answered Oct 05 '22 19:10

Nain