Save System Help - Remove Savers from Prefabs Save

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
timmytim101
Posts: 2
Joined: Thu Jun 06, 2024 12:03 pm

Save System Help - Remove Savers from Prefabs Save

Post 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!
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save System Help - Remove Savers from Prefabs Save

Post 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.
timmytim101
Posts: 2
Joined: Thu Jun 06, 2024 12:03 pm

Re: Save System Help - Remove Savers from Prefabs Save

Post by timmytim101 »

Awesome,

Thank you so much!
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save System Help - Remove Savers from Prefabs Save

Post by Tony Li »

Glad to help!
Post Reply