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

PlayerPrefs and colons!

$
0
0
Hey All, I need to ask something, I have this simple script trying to save something if(GUI.Button(Rect(Screen.width/2-125,Screen.height/2+30,125,30), "Save")); { PlayerPrefs.SetString("myPlayerName","playerName"); PlayerPrefs.Save(); } But I get an error in Unity saying " BCE0044: expecting :, found ';'. But it can't be expecting a :, I have checked USR and this is how it is meant to be written isn't it?

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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