hit2501 Posted September 3, 2015 Share Posted September 3, 2015 Hi. I'm here again, I have a scene with imported meshes from Blender, nothing strange but now I want to know what's the codelines to quit one of the meshes. Can you help me please?Thank you. Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 3, 2015 Share Posted September 3, 2015 To remove a mesh use its dispose function. meshToRemove.dispose() Quote Link to comment Share on other sites More sharing options...
hit2501 Posted September 4, 2015 Author Share Posted September 4, 2015 Thank you very much RaananW that is what I was looking for. One more question: there is some function to detect right click, this because I want to unload the mesh by right click. One more, Thank you. Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 4, 2015 Share Posted September 4, 2015 Hi There is a right click trigger, you can read about it here http://doc.babylonjs.com/tutorials/How_to_use_Actions#triggers 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.