Issue saving on Android device

Discussion and help for Easy Save 3
Post Reply
PopQuizHotShot
Posts: 7
Joined: Tue Nov 24, 2020 12:48 am

Issue saving on Android device

Post by PopQuizHotShot »

I'm trying to save gender selection for a player on the main menu of my game.

Intended behavior:
1. Enter intro screen
2. Tap "Start Game"
3. Tap "Male" or "Female"
4. Scene change with a...

Code: Select all

[SerializeField]
private Enums.Gender
...field memorized

What I’ve tried:
- Enabled “Save Prefab” on player prefab
- Called below snippet when gender button gets selected:

Code: Select all

ES3.Save(Constants.PLAYER_PREFAB_SAVE_KEY, this)

- Called below snippet when scene loads (tried in both Awake() and Start()):

Code: Select all

ES3.LoadInto(Constants.PLAYER_PREFAB_SAVE_KEY, this)

EasySave is currently set to load in Awake()
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: Issue saving on Android device

Post by Joel »

Hi there,

Just to check, have you accounted for the situation where there will not be any save data when the app first loads? You can replicate this in the editor by deleting your save data (Tools > Easy Save 3 > Clear Persistent Data Path).

If this doesn't resolve your issue, please could you send me the output of your logcat console?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply