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 best solutions below

1
On BEST ANSWER

You just have to use mesh.dispose();

0
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