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 wish to load asset bundle in different server, I modify software.js and go full url for asset bundle like this:

overrideSettings: {
  property: {
    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 at all times use present area to create inner url useful resource. I wish 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 possibly set the url appropriately. However I feel distant bundle just isn’t supposed to make use of this fashion.

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 way in which it masses 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