Hello,
I’m found a little bug.
When i dispose several times the same SpriteManager, for the second and following dispose an other SpriteManager is disposed.
It comes from the SpriteManger.ts line 761, indexOf return “-1” and splice(-1,1) delete the last element in array.
I sink that we should check if indexOf not return “-1” and why not create method “isDisposed” for users know this spriteManager is already dispose
I can do PR if you want !
Playground when the bug is present: https://playground.babylonjs.com/#SVILZC#1 (Open inspector for see all SpriteManagers)
Victor