Support creating and saving a game

I would like my blueprint to create a save file if not found, otherwise load it. If it is being created I would like to set defualt values to the content of my save file. The save file is then to be saved as a variable accessible to update later.

This is the closest to this i have gotten in my blueprint event graph:

My Acutal Blueprint class “SaveData” only has 1 variable inside it called PlayerSaveData of type “Save Data Struct” (which is public), which i have defined containing several variables.

How do i get my blueprint for example to set the value of “SaveData”.“PlayerSaveData”.“Gold” to 100 in the beginning?

Please note that I am very new to unreal and its blueprint as a whole, although far from new when it comes to coding in general if it makes it simpler to explain.

1 Like

When you’re defining the struct, you can set the default values…

Ok I had completely missed that tab and gotten convinced it doesn’t support it…

Well that solves it. Thanks

1 Like

:blush:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.