JAA Posted July 19, 2017 Share Posted July 19, 2017 Simple question. How to cleanup? I want to do this well as I want to destroy every sprite and texture without exiting the window. I then want to create a load more textures and sprites, but some of the textures will be ones that were previously destroyed, so I want to avoid the 'Resource already exists' problem. I have created loads of sprites, and since I need to access them quickly I have them in a quick lookup, so I clean these up by going through each one and using the function destroy. However, I also want to clean up all the textures.They are in PIXI.utils.TextureCache I think. How do I clean these up? Is there any other references to these textures that need cleaning? Are there any other issue I might encounter? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.