- Home /
How do I keep variables when game is closed?
I'm quite new to Unity and I'm making my first game. In this game player gets through levels and unlocks new abilities, then it is possible to replay levels with new skills. I need to keep few variables (last played level, characters unlocked skills, unlocked levels) from beeing deleted when player quits the game and gets back. I've already searched through the internet but I still have no idea how to keep data from beeing deleted. I guess I need some kind of save file but how do I make one? Please help. Also, I write in C#.
Your answer
![](https://koobas.hobune.stream/wayback/20220613152842im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Save Position script. 2 Answers
How to add a quit button to this script. 1 Answer
Serialization scripting error 1 Answer
Port Project Setting TO Another Project 0 Answers