If I load an animation track via either Humanoid:LoadAnimation()
(now deprecated) or Animator:LoadAnimation()
is it best practice to destroy it when done with it?
Also any idea if loading an AnimTrack has a limit on the number of times it can be played? I think I’ve seen errors about some sort of playback limit being reached, but not sure if this is a thing or not.
1 Like
-
Since AnimationTracks are parented to nil, they’ll be automatically destroyed when the variable containing them gets removed. Therefore, you don’t need to :Destroy() them manually.
-
I’m pretty sure you can play the track as many times as you want. I’m not sure about those errors, but most likely there’s nothing to worry about.
4 Likes