voidstar Posted February 23, 2017 Share Posted February 23, 2017 My game has multiple game states (ie levels) and each game state has a root container to which all further pixi objects are children off. When swapping game states I wish to clean up all the objects that were part of that state but leave the base textures in tact for future use. If I call destroy(true) on the root container so that it destroys itself and all it's children then it also destroys all the base textures used by those children which means I'd have to reload all my assets when swapping states. Is there a way I can destroy everything attached to the root container but leave the base textures untouched? 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.