For some reason my progress, as in scripts on objects, keep getting removed after I reset my game by clicking the ‘Play’ Arrow again. By that I do not mean the scripts get removed entirely, I just have to put them on the objects everytime I reset the game which is very annoying. I hope anyone knows a solution. Please don’t be too harsh if the solution is obvious: I have searched on google and everywhere and I didn’t find anything.
Unity will not save anything you do to scene objects while in Play Mode, so when you click the Play button again and go out of Play Mode, it loses all changes.
This is by design, although there is at least one open request to make it possible to keep the changes.
Note that changes to things in the Project hierarchy - such as materials or prefabs - will not be lost after exiting Play Mode.
To circumvent the problem you’ll have to add the components while out of Play Mode and take a screenshot or notes of the tweaked values you’d like to keep.