playMaker

Author Topic: PlayerPrefsQ  (Read 3418 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
PlayerPrefsQ
« on: April 10, 2015, 08:52:02 PM »
Need to save 300+ keys in PlayerPrefs; don't know how to use Json/Xml or don't need it, then use this.. based on PlayerPrefsX(ArrayMaker2) + PreviewLabs PlayerPrefs.

These actions are for serialising(saving) data (including arrays) into a separate file(.txt). For a large amount of data, these actions should be quicker vs Unity PlayerPrefs. You can use it in parallel with Unity PlayerPrefs (& PlayerPrefx Extension). There is no encryption as these actions are for speed only (if you need encryption use a dedicated tool).  Stats @ http://www.previewlabs.com/previewlabs-playerprefs-vs-unity-playerprefs/

Requirements
ArrayMaker
source: https://hutonggames.fogbugz.com/default.asp?W714

Array actions explanation (PlayerPref Q & X actions use the same interface) can be found at: http://hutonggames.com/playmakerforum/index.php?topic=10072.0


Usage Caution: You have to use the action 'PlayerPrefsQ Save' to save the data to the file or have the proxy in the scene. This function will write to disk potentially causing a small hiccup, therefore it is not recommended to call during actual gameplay but you have to call it before Application Quit/Restart. PlayerPrefs Q does not write preferences to disk on Application Quit unless you have the 'PlayerPrefs Q Proxy' in the scene or use ApplicationEventsBridge. This applies to all 'PlayerPrefs Q actions' (except Delete all keys action), meaning nothing is in the file until 'PlayerPrefsQ Save' is called (by action or proxy). Also included is Unity 'PlayerPrefs Save' action, so that you can force Unity PlayerPrefs to save at whatever point needed as the unity playerprefs only saves when applications quits. Best to save (all of the playerprefs) when you are loading new levels or end of level or at key points in the game... or wait until application quits..

PlayerPrefs Q Proxy: Just before the application quit, save all PlayerPrefs Q data. Not a requirement (use 'PlayerPrefsQ Save' for 'manual' save) Menu Path: PlayMaker/Addons/PlayerPrefs Q/Add Proxy to scene

Actions for Mobile and/or Pc

Hope it helps..

Version: 1.0.1
« Last Edit: June 21, 2015, 11:37:23 AM by dudebxl »

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Re: PlayerPrefsQ
« Reply #1 on: June 21, 2015, 11:37:35 AM »
update bump ***