How to correctly remove skeletons and meshes and etc after exit from immersive mode?

Hello!

Please give an advice how to correctly dispose hands resources after exit from XR session.
(i used standard WebXRDefaultExperience)

Every enter (if user enter and exit few times) lots of additional nodes (which present bones and hand meshes) appears in Scene.

I could do it manually but almost sure this is wrong way )

getHandByControllerId() of WebXRHandTracking doesn’t help a lot (

1 Like

ping @RaananW

The models should be disposed on exit. I’ll check that

1 Like

The changes in this PR, once merged, will allow you to dispose on session end - Added the option to dispose hand meshes on XR session ending by RaananW · Pull Request #14788 · BabylonJS/Babylon.js (github.com)

1 Like

Thank a lot! :pray: