Thursday, September 1, 2022
HomeGame DevelopmentGet complete measurement of downloadable file. v2.4.9 - Cocos Creator

Get complete measurement of downloadable file. v2.4.9 – Cocos Creator


Is it doable to get the scale of a file earlier than obtain it on native or internet? Does Creator assist this?

Right here i can’t get this info:

cc.assetManager.loadRemote<cc.JsonAsset>('https://someurl/asset.json', (err, asset) => {

});

cc.assetManager.loadBundle(bundleName, choices, completeCallback);


you’ll be able to check with scorching replace tutorial:
https://docs.cocos.com/creator/handbook/en/advanced-topics/hot-update.html
There’s a technique to generate the file measurement offered inside.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments