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

PlayerPrefs not working in another scene

$
0
0
I'm trying to make a leveling system for my game but when I'm trying to get a playerpref to another float in another scene it doesnt work I was using void Start() { health = PlayerPrefs.GetFloat("health"); currentHealth = health; HealthBar.value = CalculateHealth(); }

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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