❓ Scene Changes Not Reflected Due to Local Scene Priority While Using Asset Bundle in Cocos Creator 2.4.7

Hi everyone,

I’m facing an issue while working with Asset Bundles in Cocos Creator 2.4.7.

:wrench: Scenario:

  • I have created a scene (e.g., game.scene) and bundled it using the Asset Bundle feature.
  • I made some changes in the scene (e.g., color updates, added new nodes with scripts) and built the updated bundle.
  • I’m loading the bundle from local storage or remote URL using the following code:

ts

CopyEdit

let bundlePath = jsb.fileUtils.getWritablePath() + "GameSceneBundleTest";

cc.assetManager.loadBundle(bundlePath, (err, bundle) => {
    if (err) {
        console.error("❌ Failed to load bundle:", err.message || err);
        return;
    }
    bundle.loadScene("game", (err, scene) => {
        if (err) {
            console.error("❌ Failed to load scene:", err.message || err);
            return;
        }
        cc.director.runSceneImmediate(scene);
    });
});

:warning: Problem:

Even after loading the bundle successfully, the updated changes in the scene are not reflected. The scene looks the same as before — it seems like the project is still using the local game.scene instead of the one from the bundle.