References lost when entering play mode

Discussion and help for Easy Save 3
Post Reply
silkmoon18
Posts: 13
Joined: Sun Oct 01, 2023 11:04 am

References lost when entering play mode

Post by silkmoon18 »

In editor after refreshing the reference manager, the ref count is 7587, but after entering play mode, it changes to 7223. It lost some references to my scriptable objects. I've added the ref folder to setting and also tried manually adding ref, but they are still lost.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: References lost when entering play mode

Post by Joel »

Hi there,

It's normal for the reference count to change at runtime as some Editor-specific items are removed.

If you are having issues please could you let me know any errors or warnings you are getting?

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
silkmoon18
Posts: 13
Joined: Sun Oct 01, 2023 11:04 am

Re: References lost when entering play mode

Post by silkmoon18 »

Hello Joel,

I think I have resolved the issue. It looks like it was because I put the manager in a prefab and marked it dontdestroyonload. I am not sure if that was the real cause, but right now it works well.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: References lost when entering play mode

Post by Joel »

Glad you managed to resolve the issue. For future reference you shouldn't put the manager in a prefab or mark it as DontDestroyOnLoad otherwise it can't operate correctly. See the References guide for more information:

https://docs.moodkie.com/easy-save-3/es ... eferences/
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply