Babylon.js, how to remove a mesh from scene?

7.7k views Asked by At

How can I remove mesh from scene in Babylon.js in runtime? Tried to search, didn't find, also tried to view the scene methods in debugger, also can't find.

2

There are 2 answers

1
David Catuhe On BEST ANSWER

You just have to use mesh.dispose();

0
Abdulla Ababakre On

I guess what you are finding for is this .

This method removes the specific mesh .

scene.removeMesh( mesh name );  

Here is the example https://playground.babylonjs.com/#3UW6W3#2