animationGroup dispose()

After disposing an animationGroup, I’m still able to do a console.log() on it, is that normal?

https://www.babylonjs-playground.com/#HZBCXR#29

Yes this is normal. Dispose does not vaporize it :smiley:
It only frees associated resources but as long as you own a reference to it you can see it.
To finish the dispose you have to set animGroup = null so the GC will know it can be reclaimed

1 Like

Lol ok, it was indeed a misunderstanding on my part. Thanks for the clarification.