in my script, i dynamically reload a file based on a random number. however, when the rng is the same as it was before, the variables that where stored in the resource save. how would i stop the resources from saving?
script:

variables i need to unload:

I think you could use ResourceLoader.load()'s third argument, the CacheMode, and set it to CACHE_MODE_REPLACE to override the cached resource.