Hi, I am trying to create and delete multiple scenes. I have 3 to 5 scenes in memory at one time but only one is being rendered. I can change scenes or delete them. When I delete a scene I do the following steps:
- Remove pointerObservable of the current scene
- detach camera control
- dispose gizmoManager utilitylayer(which I create manually when creating gizmo manager)
- dispose the scene
After the above process I assign a scene which I had already created before to render.
Then I do the following steps:
- add pointerObservable to the current scene
- attach camera control
- create a new gizmoManger with new utilitylayer for the current scene
@Cedric Can you please take a look at this. I don’t know who else to tag the error is being thrown when I create a new GizmoManger with utiliyLayer.