Quantcast
Channel: Answers for "how to save score in a system as a file in unity3d"
Viewing all articles
Browse latest Browse all 4

Answer by save

$
0
0
Use the [PlayerPrefs][1] to save and load values between sessions. static function SaveProgress () { PlayerPrefs.SetInt("Player Score", scoreVariable); } static function LoadProgress () { scoreVariable = PlayerPrefs.GetInt("Player Score"); } For even more functionality you could use [ArrayPrefs2][2] made by Eric5h5. [1]: http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html [2]: http://www.unifycommunity.com/wiki/index.php?title=ArrayPrefs2

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images