How to keep randomly selected object when reloading scene.,How to keep randomly selected object when reloading the scene

I have an array of game objects and one is randomly insatiated when the player enters the scene. when the player enters a new scene and then returns to previous scene the object it re-randomized. How do I keep/remember the originally randomized object when returning to the scene.

If you must change scenes (maybe you don’t) you will have to save the info and set it once you load the scene again. It can be done with PlayerPrefs.

Maybe you can keep the scene loaded and do the other things in the same scene… Changing scenes is not always necessary.