Page 1 of 1

References lost when entering play mode

Posted: Sun Oct 01, 2023 11:09 am
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.

Re: References lost when entering play mode

Posted: Sun Oct 01, 2023 2:23 pm
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

Re: References lost when entering play mode

Posted: Mon Oct 02, 2023 2:28 am
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.

Re: References lost when entering play mode

Posted: Mon Oct 02, 2023 6:20 am
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/