Thursday, February 27, 2025
spot_img

2.4.13 loadBundle would not auto seek for model with out passing in model – Cocos Creator


After I don’t state a hash model, the bundle don’t auto discover the fitting model

cc.assetManager.loadBundle(‘http://127.0.0.1:5500/construct/web-mobile/belongings/vault’, (err, bundle) => { });

I need to embrace the model like this solely it’ll work
cc.assetManager.loadBundle(‘http://127.0.0.1:5500/construct/web-mobile/belongings/vault’, { model: ‘15ede’ }, (err, bundle) => { });

is that this a bug? as I see within the doc it says it ought to capable of auto discover

Thanks


Please test whether or not the fitting hash worth exists in settings.json.


it has the fitting hash in setting, however it’s not discovering it although

The model you could have offered is ‘15ede’, which is completely different from the screenshot you could have offered.

That’s as a result of I already rebuild the mission, it received’t discover even the numbers are the identical
image
image

That is the codes I write to load distant bundle.

Right here is the hyperlink to Check load bundle. Please test whether or not the hyperlink is right or not.

Right here is the load bundle consequence:

I couldn’t use the preview hyperlink straight because it says CORS, I’m utilizing visible studio code’s reside server plugin to host the construct file as a substitute, I’ve taken a video of me beginning the method from new mission, with the ability to load the mission if I offered the model and never capable of load after I take away it. Are you able to see if I’ve achieved something wrongly? Thanks

Simply have a attempt to arrange a distant sources server to add the testBundle, that can keep away from the CORS. Then click on the button beneath,
image. That the completely different steps between you and me.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement -spot_img

Latest Articles