Loading a prefab works in the editor but not on an Android build

Discussion and help for Easy Save 3
Post Reply
hineslindo
Posts: 2
Joined: Wed Apr 21, 2021 7:08 pm

Loading a prefab works in the editor but not on an Android build

Post by hineslindo »

Hi there,

I'm saving a prefab in one scene and loading it in another. In the editor this works without issue however when testing on an android build, the prefab isn't there? Any ideas what the issue might be?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Loading a prefab works in the editor but not on an Android build

Post by Joel »

Hi there,

Please could you show me the complete logcat output for your Android build running on the device? If Easy Save encounters issues then errors or warnings should be outputted to logcat.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
hineslindo
Posts: 2
Joined: Wed Apr 21, 2021 7:08 pm

Re: Loading a prefab works in the editor but not on an Android build

Post by hineslindo »

Hi Joel,

I'm seeing a ton of warnings like the following:

Warn Unity Reference with ID 7564743709437632194 could not be found in Easy Save's reference manager. If you are loading objects dynamically (i.e. objects created at runtime), this warning is expected and can be ignored.
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: Loading a prefab works in the editor but not on an Android build

Post by Joel »

Hi there,

This is expected if you're loading objects which are created at runtime.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
bloodywind
Posts: 1
Joined: Sat May 01, 2021 9:56 am

Re: Loading a prefab works in the editor but not on an Android build

Post by bloodywind »

hineslindo wrote: Wed Apr 21, 2021 7:13 pm Hi there,

I'm saving a prefab in one scene and loading it in another. In the editor this works without issue however when testing on an android build, the prefab isn't there? Any ideas what the issue might be?
What is an Event do you use for saving?
I am hited with this problem too. But i used "OnApplicationQuit", and fix it like use for Android an event - "OnApplicationPause"

But if you loaded data from Start method you have to to do stopper inside "OnApplicationPause" because this event is triggering before Start and After Awake

I hope it helps you or someone like me. =)
Post Reply