What is the ideal way to dispose off a mesh entirely from the scene along with its material, textures?

Whenever I am trying to dispose off a mesh using mesh.dispose(), the material of the mesh is not getting disposed off. I have to first manually trigger, mesh?.material?.dispose().

I have confirmed the scene by logging the scene object and the material PBR is getting persisted.

This function has two input parameters. You need to set the second parameter to true.

1 Like

Can you explain to me on how can I access. mesh name from the material accessed?


Docs - Material | Babylon.js Documentation

How can I monitor the current zoom in the scene view?
Is there any event listener to do the same.