Unity locks up when saving an Array

Discussion and help for Easy Save 3
Post Reply
petethechin
Posts: 2
Joined: Tue May 02, 2023 6:58 am

Unity locks up when saving an Array

Post by petethechin »

Hi, when I try to save my array (player inventory) unity locks up, when I end process easysave has created a temp files over over 5MB. I just use Get FSM array, then save it. The array is just 12 gameobjects, some array items could be null. Can anyone advise me what is going on?

Thanks

Pete
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Unity locks up when saving an Array

Post by Joel »

Hi there,

GameObjects can be large objects with a large amount of data to serialize, but it's not possible for me to tell whether this is the case for your project.

Please could you create a new project with a very simple scene which replicates this and private message it to me with instructions.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
petethechin
Posts: 2
Joined: Tue May 02, 2023 6:58 am

Re: Unity locks up when saving an Array

Post by petethechin »

Hi Joel, thanks for your quick help. My Array is just contains 3 boxes, I'm sure I'm doing something wrong and I suspect that my inventory system is the problem. I am going to redesign it so that all my game items that can be picked up are scriptable objects, i think it will be a more robust system.

Thanks for your help again, I'm sure ill be back here!

Pete
Post Reply