I have a unity game with a menu scene and multiple levels that I want a user to re-visit. Both the menu and scenes make use of a gallery with an image in it.
When I load from the menu to the scene and back again, the images sometimes go missing. I don't think this happens on first load - but it seems to occur once I've loaded away from a scene. Ie - Menu > Scene > Menu might mean the menu is missing an image. Or Menu > Scene > Menu > Scene might mean the scene misses an image.
I don't believe I want DontDestroyOnLoad because I don't want the objects to remain between scenes - but I wonder if the scene level gets cleared when you load away from it? Is there any way I can totally refresh the scene back to its original point? I haven't seen this mentioned in any guides - but I wonder if more often scenes are not reused.
Is there anything I can set on the image or texture itself to ensure that it isn't cleared without keeping visible between scenes? Or any other suggestions!