Questions about dispose and cleaning up unused resources

  1. Does calling dispose() on a parent mesh cascade over all its child meshes and dispose() of them too?
  2. If dispose() is called on a mesh with a physics imposter, is its physics imposter also disposed?
  3. If a mesh and/or its physics imposter have observable callbacks added, do we need to unregister those callbacks before disposing of the mesh? Or does disposing the mesh also clear all observables?

Yes by default (you can disable this if you want).

I don’t think so but I don’t know the physic systems…

Disposing of the mesh clears all the observables of the mesh but I don’t know for the physic imposters.