assetManager.loadBundle加载小游戏分包没办法获取加载进度吗

3.7.2

1赞

回调函数触发代表加载好了

1赞
assetManager.loadBundle("MapAsset", (err: Error, bundle: AssetManager.Bundle)=> {
    bundle.loadDir("",function(finished: number, total: number, item){
    console.log(finished/total)
}, function (err, assets) {
    console.log(assets)
 });
});

原来跟resources的一样

3赞