Preload Scene and use Asset Bundle

As mentioned in cocos document to load scene and use Asset Bundle:

In addition, as of v2.4, the Asset Bundle has added a new loading method:

bundle.loadScene(‘MyScene’, function (err, scene) {

  • cc.director.runScene(scene);*
    });

I don’t know how to use bundle variable, could you please give me more detail how
to declare “bundle” or how to make bundle works.

Thank you.

Did you configured any bundle yourself?

If not, resources is considered a bundle now. try cc.resources.loadScene

1 Like