can't re-initialize prefab component on Android

Discussion and help for Easy Save 3
Post Reply
pierrenay
Posts: 17
Joined: Sun Sep 01, 2019 8:25 am

can't re-initialize prefab component on Android

Post by pierrenay »

I have updated a prefab which uses prefab auto quit save/load on awake, works fine in unity play mode but its not reflected in the Android build, seems to keep the previous prefab data instead (UI text). I have deleted the app folder on Android before reinstalling but to no avail, any ideas anyone :?: please!!
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: can't re-initialize prefab component on Android

Post by Joel »

Hi there,

What event are you saving and loading Auto Save on?

Unity's OnApplicationQuit event is not called on Android, so you should use OnApplicationPause instead.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
pierrenay
Posts: 17
Joined: Sun Sep 01, 2019 8:25 am

Re: can't re-initialize prefab component on Android

Post by pierrenay »

I have been using AUTO-SAVE OnApplicationQuit and it does appear to work on Android? .. to solve the issue of initializing a previous version of save-prefab , I now use events to trigger force save the 1st time a user starts the app after a google store update.
I suppose I was being lazy :) thanks for your response.
Post Reply