Scene Management

I need way to switch scenes. I imagine that you should dispose the old scene first and then load all the assets in the same scene? Or how does that work exactly? And also when loading a character and adding the controls. What would you guys recommend?

Hey you don’t even need to delete the old scene if you do not want to
The scenes are independent containers and can live together.
You decide which scene to render in your render loop:

engine.runRenderLoop(() => {
  scene1.render();
  scene2.render();
});
2 Likes

Can scenes be stored like that? And, if they are not rendered, would they affect performance?

If not rendered they are not costing any perf.
And they are regular objects so you can store the objects the way you want

Cool. Thanks for the help :slight_smile:.