playMaker

Author Topic: Save color value to playerprefs?  (Read 2538 times)

derkoi

  • Full Member
  • ***
  • Posts: 187
Save color value to playerprefs?
« on: July 12, 2013, 04:11:16 AM »
In my game the player can customise various items colours, however after exiting the game the player has to reapply those colours they last used. I'd like to save them to the playerprefs so I can load them up each time the game is started.

How can I do this? Somehow convert a colour to a string?

Thanks

derkoi

  • Full Member
  • ***
  • Posts: 187
Re: Save color value to playerprefs?
« Reply #1 on: July 12, 2013, 04:57:41 AM »
Solved it myself with ArrayPrefs2  :P

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Save color value to playerprefs?
« Reply #2 on: July 12, 2013, 05:28:17 AM »
Hi,

 yes, and this is the based I used for the improved player prefs systme I wrote a few weeks ago.

http://hutonggames.com/playmakerforum/index.php?topic=3956.msg20387#msg20387

bye,

 Jean