Using unity's playerprefs to communicate with JSON objects.

0 votes
Would this be efficient for an online game? I want to store properties of a player in the unity's playerpref's and then upon account creation their playerprefs are set to their account's JSON objects. Then everytime they log in their prefabs will be set to the JSON objects in the database. Will be using this system for things like money, items, wins, losses, ect. Would this work?
asked Mar 5, 2014 in App42 Cloud API-BaaS by JoeCrill (25 points)
edited Mar 5, 2014 by JoeCrill

1 Answer

0 votes
I did not fully understand it however it looks like you are trying to maintain a local cache of player data.

If that is the case, using player prefs would be preferable option.
answered Mar 6, 2014 by ajay123 (899 points)
But I also want to store it in the database, can I do both? will this cause conflict?
I assume you are referring to App42 storage here when you are saying that you want to store it in database. If that is the case, there wont be any conflict.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...