Hey,
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?
cheers