Jump to content

Delete loaded files from cache


Recommended Posts

I got some scenes, which loading assets only needed in those, I would like to clear the cache out of the files when a new scene is started so that the memory is free again.
But I can't find an example or something in the docs. I had a look at this.scene.cache.destroy();

But when I do this in a constructor: It throws an error that cache is not defined.
Or at the first line in preload: it messes up the files that will be loaded afterward.

Can anyone help me out regarding this?


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...