Author Topic: Checkbox reflecting Playerprefs setting?  (Read 3445 times)

derkoi

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 57
    • View Profile
Checkbox reflecting Playerprefs setting?
« on: June 03, 2012, 05:56:47 AM »
I've got my playerprefs options and I'm trying to get a UICheckbox to show the state of the option when the options menu is loaded.

I've tried:
  1. public UICheckbox leftHandedCheckbox;
  2.  
  3. leftHandedCheckbox.mChecked = PlayerPrefsX.GetBool("Left Hand Mode");

but it's not working. I noticed also when i ckeck and uncheck mChecked in the inspector it doesn't update in the game view.

Any suggestions? Thanks
« Last Edit: June 03, 2012, 05:59:06 AM by derkoi »

derkoi

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 57
    • View Profile
Re: Checkbox reflecting Playerprefs setting?
« Reply #1 on: June 03, 2012, 06:08:51 AM »
Scrap that I found it. I used isChecked not mChecked!  ::)