Save your Options
It is presumed that you already familiar with the basic UE feature "SaveGame"
Last updated
It is presumed that you already familiar with the basic UE feature "SaveGame"
Last updated
In the future, I am planning to rework my whole SaveGame
concept and make it more automatic and easier to use. For now, it is quite straight-forward and simple, if you already at least watched some of the Unreal Engine SaveGame
tutorials and know what that is - it all will be easy for you to understand.
Open the SaveGame
file BP_SaveGame_GameSettings
. As you can see, here all of the non-GameSettings are stored.
Add a variable for the new Option you need. Now you want to access that variable from any place in your Project, read / write its value. I do that with the help of the GlobalFunctions BP library.
I suggest you also make Set
/Get
little functions as well. In my opinion, it is better to have such things as one neat node when possible.
In this project, I went with a simple and straightforward approach of autosave. Once an event from an Option
in the Page
is triggered and its functional part is executed - then it is instantly Saved.
Go and open something like Screen
, Audio
, Mouse
pages and look what i am talking about. Save is performed with a simple call of this Global function:
But I am already thinking about remaking this entire thing, probably will figure out the best way how to do that soon.