Change Volume Settings UE5 Tutorial Save and Load pt.1
Vložit
- čas přidán 11. 09. 2024
- Sound Files: drive.google.c...
Part One
I will show you how a slider can control the volume of specific sound classes.
Volume levels will automatically save and reload with this method.
Part Two
I will show you how to get it working for gamepad/controllers
#unrealengine5 #ue5 #unrealenginetutorial
This might be the best audio tutorial I've ever watched. Although the audio settings worked in viewport and standalone at first. When I packaged it later, it didn't work. I went down to the comments and you answered someone saying "you need to run it in game mode or player controller".
I copied the blueprint to the GameMode blueprint and it worked!! Thank you very much. Now I can watch your part 2 hehe.
As a heads up for anyone also wanting to do a Master Volume slider and anyyone wanting to use the common UI plug in:
Master volume: easily made by doing everything in the video, but with a the third slider/variable/etc.
Then you go into the "Sound Class" you probably named Master and add in the "Details" the Sound Classes you made for music and SFX (or any other/extra you made) into the "Child Classes" Array.
Make sure to check "Apply to Children" in the Sound Class Mix and if it does not apply, into all "Set Sound Mix Class Override" as well
For Common UI Plug In:
You probably made an own Blueprint out of the slider, to use them several times, so you don't have access to the "on value changed" function if used in a seperate widget. To fix this go into your Slider blueprint, create an Event Dispatcher in the Details Tab, Call it "OnValueChanged" and connect it with the "On Value Changed" from the slider with a "Call OnValueChanged" node. Now you should have access to this function even in different Widgets and you can follow along the tutorial
You saved my life this week my guy. thank you so much!
Thanks for this dude. I have been struggling for about 3 or 4 days to figure this sound/ slider thing out.
Many thanks for this tutorial! :)
Thank you so much for this tutorial. This was unbelievably helpful!
Loved the video, I noticed however that you didn't show how you linked saving everything to a 'confirm/done' button
Thanks. it creates a save file at the "savegame to slot" node. So everytime you update the slider, the save file changes. You could make a button that triggers "savegame to slot" node with similar logic. Just pass the variables in. pt 2 is out and shows how to make a "resume" button
Thank you kind sir. It worked .
Thanks Dude great unreal Engine 5 tutorial on volume sliders. Did you ever make the vid for the buttons?
pt 2 is out
@@DankSoss hey thanks mannn!
thank you very much
Many many thanks mate! Just a comment, using the sliders, set the min value to 0.001 or the sound/music wont work propertly
thanks bro
Dude you saved my life ty
Is there anyway you to make a video about master volume ?
I definitely need to add the gamepad part of tutorial for part 2, so I may add that too
Hello, thank you for the tutorial.
I seem to have a bit of a problem, when I open up my audio widget & access the slider, I keep getting errors thrown at me that say “Accessed None trying to read property SaveAudioRef”. I have troubleshooted by printing the value beforehand and it consistently prints 0.0, even though I set the value to be 1 at the beginning.
If you or anyone else could help me, that would be greatly appreciated!
Where is part 2?
cooking up part two now. I got addicted to GTA RP, but getting back into Unreal again.
pt. 2 is out!
You have to save it to a game slot? I am amazed theres no short cut like there is for video settings with the apply settings node.
seems the audio just goes to 0 once you click the slider. I am not sure what I missed since I went through the tutorial twice, but I also don't seem to see a variable for volume control.
Will we ever see part 2? :o
I got in the ONX server for GTA RP and got addicted to it. Whenever I have free time I stream on twitch. All the nice comments here snapped me out of it though, I need to get back to gamedev. PART TWO COMING UP!
pt 2 is out
This was really helpful, thank you. Only problem is when I restart the game it doesn't actually start from the save file
18:25 Is where the loading happens. For this example I put it in the Level Blueprint off begin play. But you can put it somewhere like the gamemode or controller for example. (Just make sure it loads and pushes to mix at beginning of game)
No problem! I forgot to finish this tutorial for the gamepad thanks for the reminder
And if it's still not loading, make sure your save file actually exists. It creates a file where your project is on your computer. Open file location and look in SaveGames directory for .sav file.
If it doesn't, you may have accidentally looked over something, you can re-trace your steps and use print strings
Hey there! I followed the tutorial and it all works perfectly, up until I packaged the game :")) The sound doesnt work anymore and I was wondering if anyone has any clue on what to do.
does your game have level streaming? you may need to load the settings in the player controller or a gamemode at beginning of play
Hey I followed the tutorial and the music slider saves but not the sfx double checked everything but still cant figure out whats the problem
did you make sure they had the SFX class assigned? One time I accidentally set them to a default SFX class the engine had instead of the one I made
each sfx wav file or cue needs to be assigned to SFX class