Page 1 of 1

Save System Help - Remove Savers from Prefabs Save

Posted: Thu Jun 06, 2024 12:10 pm
by timmytim101
Hello,

This might be more of a not understanding how saves in general work.

I just got my first "position saver" setup and everything seems to be working as intended. When I load a new game, save the scene, and reload the scene the positions and some variables I have setup store correctly.

I am facing a new challenge now though, when I pick up an item it goes into an inventory list. I then save the game and try to reload my scene. Unfortunately, now the item is back in the game again because the position saver was no longer there to update to say that it had been removed.

Is there a way to remove a position saver for an item from my save slot, can I do this through code as the item is picked up or is there a trick to making sure items that have been picked up no longer spawn.

Thank you for your help!

Re: Save System Help - Remove Savers from Prefabs Save

Posted: Thu Jun 06, 2024 4:43 pm
by Tony Li
Hi,

The Position Saver won't put an item back in the scene, but if you remove an item by deactivating or destroying its GameObject you can add a Destructible Saver to track that. If you have both on the same GameObject, make sure to assign unique Key values to each.

Re: Save System Help - Remove Savers from Prefabs Save

Posted: Thu Jun 06, 2024 6:55 pm
by timmytim101
Awesome,

Thank you so much!

Re: Save System Help - Remove Savers from Prefabs Save

Posted: Thu Jun 06, 2024 7:34 pm
by Tony Li
Glad to help!