I can’t figure this out.
There used to be a checkbox that would just allow you to turn off looping, but for me there is nothing:
How do I just make the animation play once?
I can’t figure this out.
There used to be a checkbox that would just allow you to turn off looping, but for me there is nothing:
How do I just make the animation play once?
I found that I was clicking the animation controller and the loop mode off option is there.
I simply have to find the right icon in the animation folder
and click Loop time off:
I believe you have confused the Animator with the animation clip. The animator is used in Mecanim, where a controller is set up for an object or character to use a set of animations. There is no option to loop here, nor should there be, as it is running a controller which may have many animations with varying loop settings.
The animation itself is usually in an FBX or animation clip, and in those areas you will see the ability to loop the animation. Along with the looping, you can also set the animation type (generic or legacy). Once you set the animation type to generic or legacy, there are even more options within the FBX and clips (depending on the type) that you can further set the animation up with.
click on the actual animation file itself, not the controllers. this might help Basics of Animating - Unity Learn
skip to 1:36
Click on the “smoke puff” inside Motion on the first screen
You’ll be redirected in another inspector page (the animation settings) and you have to set it from there.
There are two ways I know to get this done. The first is to turn on debugging mode in the editor by clicking the button that looks like 3 horizontal lines, beside the padlock button in the top right corner and then clicking debug. after this is done select your animation clip that you want to stop from looping and select either “once” which will stop the animation after it finishes and reset the time to 0, or “clamp forever” which will keep the animation on the final frame until you stop the animation through other means.
The other method is from the script;
gameObject.animation["animationName"].wrapMode=WrapMode.Once;
I hope this helps