Distorted music and laggy when switching from one scene to another

It seems like I answered your previous question, but you should use this code:

this.app.scenes.changeScene(‘Some Scene Name’);

The reason to use it is as follows.

In my experience, the loadSceneHierarchy function only retrieves the hierarchy structure of the scene.

Therefore, it needs to be used in conjunction with the loadSceneSetting function to ensure that it runs in the expected environment.

The changeScene function I mentioned earlier is recommended because it bundles this process. I’ll leave the user manual address for your reference.

Loading Scenes | Learn PlayCanvas

1 Like