CacheManager is null even after assets are loaded


I’m using Cocos v3.2.
I have loaded a few remote assets using the

      { ext: '.png', cacheEnabled: true, cacheAsset: true },
      (err, data) => {
        if (err) {
          error(err.message || err);
        log('asset', data);
        log('cacheManger', assetManager.cacheManager); // null
        log('cached asset', assetManager.cacheManager?.getCache(data.nativeUrl)); // undefined
        log('temp asset', assetManager.cacheManager?.getTemp(data.nativeUrl)); // undefined

I’m not sure what I’m doing wrong, can someone let know what’s going wrong.

I guess the cacheManager is meant to work in native platform and not web.
For now I’m using the assetManager.assets to get the loaded remote resources in web

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.