Hi everyone
I want to reset the mesh after each session in my application. So when I start the session, I instantiate a meshing manager gameobject in my scene (with NR Meshing manager and Mesh Obj Generator components attached to it). The mesh is being generated successfully as I walk through the room. When I want to end the session:
- I call the “ClearMeshInfo()” method for every “m_MeshInfoProcessor” in the “NRMeshingManager” script.
- I also call the “m_NativeMeshing.DestroyMeshInfo()” which is supposed to clear all the mesh blocks. This method also returns “true” as a result.
- I destroy the meshing manager gameobject.
After all the above, when I start a new session and instantiate a meshing manager gameobject again, the mesh isn’t new. It is the same mesh that I destroyed at the end of the previous session.
My question is if there’s a way to reset the mesh. My application can have multiple sessions and having a new mesh each time would be better.
Thank you for your time.