x


Player Pref help

So I am trying to write a code to save my score, and apparently the player pref are working to set and get but they are not showing up on the screen at all. It is not printing anywhere. Any Suggestions???

more ▼

asked Aug 04 '10 at 02:23 PM

JasonT gravatar image

JasonT
23 14 14 15

Post the code? Much too hard to guess what you did wrong otherwise

Aug 04 '10 at 02:26 PM Mike 3
(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Try to first declare the key as a variable:

var score = playerPref.Getkey("HighScore");

Then put the variable in the GUI function.

more ▼

answered Aug 04 '10 at 02:40 PM

ThumbStorm gravatar image

ThumbStorm
418 27 33 42

(comments are locked)
10|3000 characters needed characters left

thank you..yeah I figured it out...I just didn't realize that print didn't display the score it just sent it like a Debug.Log.... :P

thanks

more ▼

answered Aug 04 '10 at 04:34 PM

JasonT gravatar image

JasonT
23 14 14 15

(comments are locked)
10|3000 characters needed characters left

hoW?..please create from the scratch.. what i mean is from an empty scene :)) thnx

more ▼

answered Aug 28 '10 at 11:07 AM

Aron 1 gravatar image

Aron 1
2 2 2 2

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x295
x5

asked: Aug 04 '10 at 02:23 PM

Seen: 1697 times

Last Updated: Aug 04 '10 at 06:38 PM