Thursday, November 10, 2022
HomeGame DevelopmentDrawback with customized url bundle in construct template cocos 3.6.x - Cocos...

Drawback with customized url bundle in construct template cocos 3.6.x – Cocos Creator


Hello, I need to load asset bundle in different server, I modify utility.js and cross full url for asset bundle like this:

overrideSettings: {
  belongings: {
    preloadBundles: [
      { bundle: staticDomain + 'assets/main' },
      { bundle: staticDomain + 'assets/resources' },
    ],
  },

The issue is in cocos 3.6 it get different bundle referred to as inner. It all the time use present area to create inner url useful resource. I need to add customized url for that bundle too, however I don’t discover any setting to override that.

The present workaround is I’ve to set mainBundleIsRemote: true in construct config, set the server url. So it may set the url appropriately. However I believe distant bundle will not be supposed to make use of this manner.

So how can I set customized url for inner bundle? btw I don’t see this inner bundle has been loaded in cocos 3.5.1


Cocos Creator 3.6.x has modified the best way it hundreds inner bundle, and you may modify this variable :
cc.AssetManager.BuiltinBundleName.INTERNAL to set customized url for inner bundle.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments