3.4 在 loadBundle 外使用getBundle 返回值为null

assetManager.loadBundle(‘test’, (err: Error, bundle: AssetManager.Bundle) => {
console.log(bundle);
});
let ccbund=assetManager.getBundle(‘test’);
console.log(ccbund);

第一个有返回值,第二个返回值为null

请问解决了吗

加载是异步操作~

那这个呢
3.6.2 assetManager.getBundle = null - Creator 3.x - Cocos中文社区

getBundle获取不到 自己弄一个缓存机制就好了呀

么有,我只能尝试在函数里面加载资源了。
然后现在发现用了 loadbundle 安卓程序直接闪退,真的破防了。