Hey, i've got some trouble as im trying to display a Playerpref string in a gui textfield, heres the code:
Made lines that ain't relevant right now comments. Thanks in advance!
Here isa sulotion, that works just fine for me:
This will display the playerpref string "Player 1 Name", in the GUI textfield.
answered Apr 07 '11 at 12:58 PM
You aren't passing the same variable to the textfield as you get returned.
Also, it is probably better to make load/save in OnEnable and OnDisable because I heard PlayerPrefs is somewhat slow. This also makes your GUI code much cleaner. Varsgod :)
answered Mar 28 '11 at 02:50 PM