- Home /
Question by
Tyler 2 · Dec 19, 2010 at 05:02 AM ·
playerprefsstring
Display PlayerPrefs.GetInt?
Hello. If I am using PlayerPrefs.GetInt, how do I display that integer as a GUI label? Also, how can I store/display multiple copies of the same string (for a local high score table)? Thanks
Comment
Best Answer
Answer by Zib Redlektab · Dec 19, 2010 at 05:06 AM
var label = PlayerPrefs.GetInt("intName").ToString();
GUI.Label(new Rect(x, y, width, height), label);
should do it.
I edited your post since it had two compile errors and it was obvious what you were trying to tell :)
Your answer
Follow this Question
Related Questions
Store individual positions of GameObjects in a string 3 Answers
Using Player Prefs 0 Answers
If Statements with PlayerPrefs 1 Answer
Create a list of all PlayPref Keys 2 Answers
How to get Steam Username? 1 Answer