Hello, I’ve been working on a system to unload and reload assets using asset IDs and for some reason when I load, unload, then attempt to reload an asset, on the reload the PlayCanvas engine gets this error: "
playcanvas-stable.dbg.js:25932 Uncaught TypeError: asset.getPreferredFile is not a function". Anyone know what could be happening here?
For some textures I noticed if I don’t unload the material (but still unload the textures themselves) the error seemed to go away. But, now I’m trying to unload a texture that isn’t part of a material and I’m still getting the error.
I can provide more detailed debug logs if that’s helpful, but just trying to see if anyone could point me in the right direction, posting the whole asset loading system or trying to create a minimal, reproduceable example would be somewhat impractical.