Hello,
I’ve a sport with multi bundle inside(sport A), a begin scene(Major) loading each factor and present the corridor, then sub sport will likely be obtain. Every thing works completely, now i would like scorching replace type one other sport(sport B) to sport A however has troubles.
It can not scorching replace as a result of sport A construct with md5 possibility. So i create one other challenge(sport C) with a easy scene to load scene from sport A, and construct with no md5. Then i scorching replace sport C from sport B and it really works.
@ccclass
export default class GameC extends cc.Element {
onLoad(): void {
let url="https://myurl.com/distant/Recreation";
cc.assetManager.loadBundle(url, { model: 'xxxxx' }, (err, bundle) => {
if (err) {
return;
}
bundle.loadScene("Major", (error: Error, scene: cc.SceneAsset) => {
if (error) {
return;
}
cc.director.runScene(scene);
});
});
}
}
However one other drawback, Major scene from sport A load one other bundle with no md5, an it fail
**Obtain file failed: path: belongings/framework/config.json.
So i have to cross possibility { model: ‘xxxxx’ } for all operate loadBundle in sport A or one thing else?
How am i able to resolve this?
Thanks