Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

Using PlayerPrefs to store string but it won't update on my UI

$
0
0
*I'm using a development build of my game to do this.* DifficultyManager Script: https://pastebin.com/mkUmvdH9 MenuHandler Script: https://pastebin.com/KM7aLawt Hierarchy: ![alt text][1] I want to know why my `currentDifficultyText` isn't updating when the game loads. When the game initially loads, it checks in `PlayerPrefs`to see if there is a difficulty string saved and if there is, set the `currentDifficulty` to the difficulty saved by the `PlayerPrefs`. If there isn't a difficulty saved, then it sets a default difficulty of normal and then that should update the text... [1]: /storage/temp/133480-my-mainmenu-hierarchy.jpg

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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