In Unity any changes made to a scene while the game is running are not saved, but there is a simple way work around this instead of writing down every variable changed.
Step-by-step guide
run the game and make the required changes to an object.
- right click on the object (or script) in the hierarchy and select copy component.
- end the running session.
- go to the object in the hierarchy or the prefab version in the assets.
- right click on the object or script and select paste component as values.