Question about loading an animation multiple times

Hey everyone.

I have a question regarding animations, especially how they are loaded.

If I load the same animation using LoadAnimation() on the same animator multiple times, will the animation be loaded multiple times (essentialy creating new instances of the animation) in the animator or will it just override the already existing animation?

Yes, Animator has a limit of 256 active animation tracks, after that new animations cannot be played. Save the loaded animation to a variable and play/stop it through that, instead of calling LoadAnimation() multiple times for the same animation.

1 Like

this doesnt answer the question tho? Im also looking for an answer

What question?

That is the answer though? Don’t know how else to word it :person_shrugging:

so duplicate animations would be loaded then?

1 Like

Yes duplicate animations will be loaded, and it will break the animator because only 256 animations can be loaded