javascriptbabylonjs

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


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.


Solution

  • You just have to use mesh.dispose();