- Home /
Is "Animations" stat in Rendering Statistics Window only an incremental value?
Hi there!
I have a prefab with a legacy Animation component with just one animation, wich I play on the "Start()" event of the prefab script just once. It's just a simple animation on the scale values from 0.0 to 1.0. The question is that for every instance I make on runtime of that prefab I can see the animation plays ok and only once but, in the rendering statistics window, the "Animations" stat only increments in +1 for every new prefab animation played. It doesn't decreases when the animations finish.
I have even checked that my prefab animation has ended with "if (!GetComponent().IsPlaying("My_Animation"))" on the "Update()" just to make sure, and it seems to finish correctly.
I just want to be sure if this is the normal behaviour of this stat or I'm doing something wrong with my animations, in order to finish them, that can affect, at any point, the performance of my game.
Thank you very much!! ^^
I have same issue... a bunch of de-activated objects... stats window reports 185 animations.... which can't possibly be true. even if I delete them all, it still shows 185 They are already set to Always Cull. and only animate when on screen. and gameObjects are disabled.... still 185
Your answer
![](https://koobas.hobune.stream/wayback/20220612122115im_/https://answers.unity.com/themes/thub/images/avi.jpg)