- Home /
Prevent animations from getting stuck if the gameObject is disabled when they are playing
PLEASE: understand the question before downvoting and if there's anything that isn't clear please post a comment describing what's the problem and I will fix it.
I use:
Unity 2017.3f2 and The New Animation System
The problem:
When an animation starts playing and I disable the gameObject, The gameObject transform gets stuck at the point where the animation stopped when the gameObject was disabled and if I started to play it again then it plays fine but after it ends the gameObject returns again the point where the animation was stopped and never returns back to normal.
Hello,
When an animation starts playing and I disable the gameObject, The gameObject transform gets stuck at the point where the animation stopped when the gameObject was disabled and if I started to play it again then it plays fine
this is expected the result.
but :
but after it ends the gameObject returns again the point where the animation was stopped and never returns back to normal.
this is weird.
I have some ideas about what causes this, but first i need some specific info.
can you create a video about what is going on and share it? (don't forget to show your hierarchy too)
Of course sir! please can you keep an eye on the next 6 hours and a video will be ready.
no worries I will be notified via email when you post something new here. but I must say that i will be sleeping 6 hours later (time-zone) but you can be sure that i will pay close attention to your question.
Your answer
![](https://koobas.hobune.stream/wayback/20220612144729im_/https://answers.unity.com/themes/thub/images/avi.jpg)