dav74 Posted October 30, 2013 Share Posted October 30, 2013 Hello,Sorry for my newbie question : How to delete object ?Thank you for your answer and thank you for this awesome Babylon.js Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 30, 2013 Share Posted October 30, 2013 You can call mesh.dispose() Jaskar 1 Quote Link to comment Share on other sites More sharing options...
dav74 Posted October 30, 2013 Author Share Posted October 30, 2013 thanx Quote Link to comment Share on other sites More sharing options...
MrVR Posted March 31, 2017 Share Posted March 31, 2017 use this this.manager.safeDestroy(this.mesh); Quote Link to comment Share on other sites More sharing options...
jellix Posted April 1, 2017 Share Posted April 1, 2017 When removing a Mesh by using 'dispose' I have to say that textures of the material of the mesh aren't disposed as well. I've had a case where the memory pumped up because of that. So I dispose the textures of the material first, then the material itself and afterwards I dispose the mesh. 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.