- Home /
Saving object locations after game close
Hello. Im an new to unity and have been attempting to make a game that involves instantiating objects into scenes. I need those object's locations, rotations, and variables about them to stay after the game is closed. I have attempted player prefs, data serialization, and arrays/list, but havent been very successful. Help?
@gabrieltm9 At the start of each scene, a object will be in the put position that it is, if you end this game, they will reset to where they were. If you are looking to (even when the game is closed and re-opened again), that the objects will be in the same position/rotation that they were left, such as a ball being rolled across the the floor, then re-opening the game to see the ball is where it was rolled to previously, you would need some sort of save function. EasySave2 may be an eye opener to you if you are looking for this feature. (Find it on asset store).
Answer by Cherno · Oct 08, 2015 at 01:52 PM
I invite you to take a look at SerializeHelper. It's free and relatively easy to understand and designed to teach users the basics of data serialization.
Your answer
![](https://koobas.hobune.stream/wayback/20220612040509im_/https://answers.unity.com/themes/thub/images/avi.jpg)