Trying to change values of bp in settings menu to then apply to generator in other level

For a Project I’m working on I want to create a settings menu where you can change the room generators values for Room amount, coin amount, chest amount, enemy amount and its seed but I don’t understand how to keep those values so it changes the generation.

Hey @PingingShip808

you can send your values to your GameInstance (create a new blueprint and set this GameInstance inside the project settings). This way they will be persistent and don’t get lost on level change. You can also use a SaveGameObject.

Save them to a SaveGame class. There are a few tutorials in epic channel to how to use that class, its pretty simple to set up.

A good way is to create a structure variable on the SaveGame BP (of a SaveGame type) and add to this structure all the VALUES you want to save into the SSD using the save game class. then just read those values with load save file function, and do whatever you want with them in any level across the game. Show them in the UI, use them to generate things ect.

Just remember not to connect this class to any tick \ real time loop …