My application has two scenes, the first is basically a splash page and the second has the main 3D content of the scene. In the second scene, I’m using lightmaps to improve performance.
When I load the second scene from the first, the lightmapping seems to be ignored unless I force it to bake somewhere in my code. If I run the scene directly (launch from editor), it works fine.
I’ve tried using loadSceneSettings with loadSceneHierarchy, but I only get an error (‘could not subscribe’) in console.
So I guess, two questions:
- How do I load a scene with lightmapping applied, from another scene?
- How do I use loadSceneSettings correctly?
For reference, I’ve created a simplified version of the project here - https://playcanvas.com/editor/scene/504112
Mouse click to change scenes, then click again to manually bake lightmaps.