What is the correct way to create and switch sprites? There are always uncleared items when switching.
pg: https://playground.babylonjs.com/#YCY2IL#1837
When you dispose a sprite, it is removed from the array, so using an ascending loop to remove all the sprites won’t work as expected. You can do it like this instead:
1 Like
I totally forgot about this