Items don't save when going between levels

Hello everyone, I followed this tutorial to make a function to save collectibles and it works except for when you chance levels in the game. It resets the saved objects for some reason.

On YouTube someone else has the same problem.

Does anyone know how to correct this issue, or have a method without these issues?

Thank you in advance

Hi there,
Welcome to the forums!

It seems the logic presented is just the basic system to give you a good start.

It’s loading data using Game instance Init event, which means only when starting the game for the first time. You want to add a Menu to manually call the load function at runtime. Also, the system presented doesn’t save the current level name, meaning changing levels don’t guarantee the system will recognize which actors belong to a given level. This tutorial shows how to do it for multiple levels:

Unreal Concepts - Persistent or Saveable Objects ( UE4 )

Thank you! And thank you for the answer. I will look over the tutorial and hopefully figure it out.

1 Like