Save/Load files at runtime - Refresh problem


I’m trying to implement a save/load file at runtime. I manage to do it, however I have a strange behavior: if I save a file in Resources, and try to load it right after, Unity doesn’t find it… I need to make right-click->refresh in the Editor while I’m in Play mode to see the file, and then Unity can find it in Play mode…
How can I solve this problem?? Ay way to “force” Unity to refresh the resource folder?



Try AssetDatabase.Refresh.