Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on May 22, 2013, 03:41:46 AM

Title: PlayerPrefs extension
Post by: jeanfabre on May 22, 2013, 03:41:46 AM
Hi Everyone,

 Following a request, please find an extension of the PlayerPrefs system to accept more types:



https://hutonggames.fogbugz.com/default.asp?W1118

bye,

 Jean
Title: Re: PlayerPrefs extension
Post by: escpodgames on May 22, 2013, 04:22:20 AM
Awesome!
Title: Re: PlayerPrefs extension
Post by: TIGGYsmalls on May 24, 2013, 10:42:00 AM
PlayerPrefs Set/Get Bool would be useful.
Title: Re: PlayerPrefs extension
Post by: jeanfabre on May 29, 2013, 01:09:25 AM
Hi,

 Bool is available, sorry for not having properly listed what's available :)

bye,

 Jean
Title: Re: PlayerPrefs extension
Post by: TIGGYsmalls on May 31, 2013, 06:28:12 AM
Ok, I've imported it in but I get these messages.

Assets/PlayMaker/PlayerPrefsx/PlayerPrefsxGetValue.cs(25,48): warning CS0219: The variable `key' is assigned but its value is never used

Assets/PlayMaker Custom Actions/PlayerPrefsx/PlayerPrefxSetValue.cs(23,48): warning CS0219: The variable `key' is assigned but its value is never used

And when I re-open Unity the Playmaker menu is gone. Do I need to put the scripts in the Playmaker folder that was already present?
Title: Re: PlayerPrefs extension
Post by: jeanfabre on May 31, 2013, 06:31:12 AM
Hi,
 
don't worry, it's harmless. I will get rid of them on the next update.

bye,

 Jean
Title: Re: PlayerPrefs extension
Post by: TIGGYsmalls on July 01, 2013, 06:10:03 AM
I tried importing the PlayerPrefs actions again and it didn't work. I saw that 1.6 is out so I downloaded that and I have the same problems.

I get a whole host of errors and when I restart Unity the Playmaker Menu is missing.
Title: Re: PlayerPrefs extension
Post by: jeanfabre on July 01, 2013, 07:32:13 AM
Hi,

 What errors do you get?

As for the unity menu not appearing, simply press pla, it usually refreshes Unity Menu system.

bye,

 Jean
Title: Re: PlayerPrefs extension
Post by: TIGGYsmalls on July 09, 2013, 09:33:30 AM
Ok I imported 1.6.2 and couldn't find the new PlayerPrefs so imported the package at the top of the this page.

Assets/PlayMaker Custom Actions/PlayerPrefsx/PlayerPrefxSetValue.cs(54,106): error CS0103: The name `PlayMakerUtils' does not exist in the current context

Assets/PlayMaker Custom Actions/PlayerPrefsx/PlayerPrefxSetValue.cs(54,69): error CS1502: The best overloaded method match for `UnityEngine.PlayerPrefs.SetInt(string, int)' has some invalid arguments

Assets/PlayMaker Custom Actions/PlayerPrefsx/PlayerPrefxSetValue.cs(54,69): error CS1503: Argument `#2' cannot convert `object' expression to type `int'

Assets/PlayMaker Custom Actions/PlayerPrefsx/PlayerPrefxSetValue.cs(57,111): error CS0103: The name `PlayMakerUtils' does not exist in the current context

Assets/PlayMaker Custom Actions/PlayerPrefsx/PlayerPrefxSetValue.cs(57,69): error CS1502: The best overloaded method match for `UnityEngine.PlayerPrefs.SetFloat(string, float)' has some invalid arguments

Assets/PlayMaker Custom Actions/PlayerPrefsx/PlayerPrefxSetValue.cs(57,69): error CS1503: Argument `#2' cannot convert `object' expression to type `float'

I get 27 errors like this, what should do?
Title: Re: PlayerPrefs extension
Post by: jeanfabre on July 10, 2013, 08:58:49 AM
Hi,

 Sorry, I forgot to mention ArrayMaker is needed. I updated the wiki to mention it.

https://hutonggames.fogbugz.com/default.asp?W715

Bye,

 Jean