Quantcast
Channel: Latest Questions by eeveelution8
Viewing all articles
Browse latest Browse all 100

Question on playerprefs

$
0
0
i have been working with different functions and values in coding, as i'm still learning. And im considering the prospects of using the specific functions with playerprefs like setint and getint. I understand how you. can set the value of a key, and retrieve it's value, this is what i understand, but what I'm confused about is how the value is created in the first place. If i were to set an int value on startup, and require the int value to be a certain number to unlock a character for a game for example, and have it initially set to 0. Upon completing an arbitrary condition, the int value is set to 1, and the character will be unlocked. But if I quit the game, Would it be reset on startup because of the setint function? The jist of my question is how to create the int value once with a value of a number in the first time the game is run and not have it reset upon loading the game up again.

Viewing all articles
Browse latest Browse all 100

Trending Articles



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