saving volume slider value then loading

hi,

the game has a settings menu in which you can interact with sliders to raise and reduce the value, in this case i’m referring to volume, by default it’s value is 100

if the player changes this, it uses the ‘On Value Changed’ event to grab the new value and throw it to the game mode where it sets the new variable locally to the game mode

when the player clicks the ‘Save’ button from the settings widget it runs the following blueprint nodes from the game mode to set the new volume value it captured locally, then throws that value over to the game save slot

game save slot that just waits until a new value arrives and saves it to itself
image

then i quit the game after saving the new value for music volume and click ‘Load Save’ from the main menu to fetch those saved values to set them again but it remains at default 100

i believe i need to also set the new changed value on the slider but not sure how…

okay i worked it out, i had saved the value successfully but i wasn’t referencing the save value again for the slider after exiting and starting again

creating a load function from the settings menu i loaded the game then referenced the saved variable (Music Volume) and ‘Set Value’ of that for the Slider, see below

1 Like