Confuse with scene management

I am confused between loadscene, loadscenhierarchy and changscene.

I have a recuring scene (playerinfo) that can be called from different scenes, and basically is a UI 2D screen with a back button. I was thinking to additively load this scene, and then disable it to restore the previous scene. I am unable to implement thisapproache with simple intructions, loadscene(playerInfo) and fail to disable the root of player info. The seen isnot found with loadscene (err 400) and the disable root button doesn’t work althoug the same script can disable anything under the root. So What can I do to achive my goal, which is go to the plyer info scene and come back to the previous scne???

Hi @magicdidier!

I don’t really understand what you’re trying to achieve, but if you simply want to switch between scenes I would use changeScene(). This method was added recently for ease of use.

this.app.scenes.changeScene('Some Scene Name');
1 Like

once more I have solved my problem. I have a scene (player info, 2D screen) and i use loadscenehierarchy, to place it on top of any scene, when the player want to see his achievements. Then I disable it to go back to the game. I have created a back and forth button, which load the scene if not loaded, and disable it if loaded. Tthat makes me only one button for navigating back and forth. It has been a little tricky, because, when you overlay a scene, the first button of your UI screen disappear, but the other stay!! so I had to create a script which disable all button while consulting the player info, and reactivate when my back and forth button is clicked. The back and forth button must not be right under the 2D screen to stay visible, during player info time… took me at least 5 hours work to figure it out