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.
Babylon.js, how to remove a mesh from scene?
7.7k views Asked by AudioBubble At
2
There are 2 answers
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
You just have to use mesh.dispose();