Page 1 of 1

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

Posted: Wed Apr 21, 2021 7:13 pm
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?

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

Posted: Thu Apr 22, 2021 7:05 am
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

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

Posted: Sun Apr 25, 2021 1:51 pm
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.

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

Posted: Sun Apr 25, 2021 2:09 pm
by Joel
Hi there,

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

All the best,
Joel

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

Posted: Sat May 01, 2021 10:11 am
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. =)