Metatron Posted November 8, 2015 Share Posted November 8, 2015 Hello I need help with total destroy pixi.js for restart it, like reload page.I didn't find API for this, what i should remove/stop, mb someone already did it? Thank you Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 8, 2015 Share Posted November 8, 2015 stage.destroy(); // free the meshes! For the resistance! You dont need this if you dont have meshes/ropes. renderer.destroy(); // free renderer, all plugins, all shaders, all textures that are loaded in GPU ... PIXI.utils.textureCache = {}; PIXI.utils.baseTextureCache = {}; //if you dont want to use images that are already loaded Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.