Forum Discussion
MatrixPaul
4 years agoProtege
Save game data where?
For Oculus Quest 2, I want to save game data, such as how far you have got on a level, high scores etc.
Do you save these as a local file or using PlayerPrefs in Unity?
What is the standard way to do this for Oculus Quest 2?
Do you save these as a local file or using PlayerPrefs in Unity?
What is the standard way to do this for Oculus Quest 2?
2 Replies
- ZenAppsStudioExplorerHi,I think its very simmilar to mobiles devices there was some time ago hole discussion in FB group for Unity.So in there is few ways :1) use PlayerPrefs - easy but quite limited2) use save json file (with some encryption - its quit easy to do)3) external database - my best if you have somethink more complex and you use Oculus avatar ID (you can use avatar ID as primary Key in database)So : 1 and 2 are quite simmilar but 2 is more clear - both methods are limited to single device so if user reinstall your game he will need to play from 0. Anyway most of small titles works like this but beware on PlayerPrefs - you need to use it very clear and never use DeleteAll.
- space.trousersExplorerHow will this work with the new App Sharing feature? Will the PlayerPrefs automatically save/load different data for different users? I can't find any documentation about it.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago
- 5 years ago
- 27 days ago