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?
Loading a prefab works in the editor but not on an Android build
-
- Posts: 2
- Joined: Wed Apr 21, 2021 7:08 pm
Re: Loading a prefab works in the editor but not on an Android build
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
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
-
- Posts: 2
- Joined: Wed Apr 21, 2021 7:08 pm
Re: Loading a prefab works in the editor but not on an Android build
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.
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
Hi there,
This is expected if you're loading objects which are created at runtime.
All the best,
Joel
This is expected if you're loading objects which are created at runtime.
All the best,
Joel
-
- Posts: 1
- Joined: Sat May 01, 2021 9:56 am
Re: Loading a prefab works in the editor but not on an Android build
What is an Event do you use for saving?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?
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. =)