Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

How to store a variable after quit? (iOS)

$
0
0
Well basically, I want a variable that would allow me to save things. Now when you quit the game, the game essentially resets. Is there some simple way, so that if I wanted the player to have something unlocked, I could just put: `var silencer == true;` and keep it even after they quit? I've made a few games in Unity and have 10s of hours of experience, but I never figured this one out. I've heard of player prefs, but if there was a simpler way of saving a variable or anything else it would be great. thanks, and I've heard of Static Variables. simply putting `static var` right? I not sure what static variables do, but does it save it after a quit? Thanks again,

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>