Help with switching scenes

I’m having a problem with switching scenes because whenever I switch scenes, my skybox doesn’t appear.

Here’s my game:
https://playcanvas.com/editor/scene/1670960

@Pixels I had a look at your project. I see that it switch from the play push button to a school room scene. I am not sure what your skybox issue is in this case as it is inside a room. When I try switching to the Instructions I get this.

I am unsure of what method you are using and it may be outdated but unsure. Here are some links to the tutorial page that may help.

https://developer.playcanvas.com/en/user-manual/packs/loading-scenes/

Also, There is useful info in a search of this forum.

https://forum.playcanvas.com/search?q=Changing%20scenes

Hope this information helps.

1 Like

I tried several scripts; switching scenes works, but the skybox still does not appear. Could you please assist me in figuring this out? Thank you very much.

@Pixels I am not sure I understand. So when I go to play I am inserted into a closed room. When I just walk through the door that has no collision I see a snow scene outside.

1 Like

Hi Pixels …If you go to " settings" hit the gear icon - Next On the right of the screen go to “RENDERING” and you can setup your skybox there … I noticed it was missing . Hope that helps . Good luck

1 Like

loadSceneHierarchy only loads the hierarchy of the scene, not the scene settings where the skybox properties are.

The link that @Tirk182 shares covers the new API added last year to make changing scenes much easier and solves your issue as it loads both the settings and scene in one call. There are also example projects.

https://developer.playcanvas.com/en/user-manual/packs/loading-scenes/#changing-scenes-completely

1 Like