How do I change the game audio volume in blueprints?

I have an options menu widget in my game and have added a slider to allow the player to control the audio volume. But how do I allow the volume to change in the widget blueprint when the slider value is changed? Is there any way to set the game’s audio volume using blueprints?

Hey there,

one method would be adding an overall Float Variable to your GameInstance and use that to
set the Sound Volume of your Sounds. You can easily access that Float Variable, since you can get the GameInstance everywhere.

BUT, a way better method would be using the Sound Classes. Sadly that’s not possible without a bit C++ or Ramas Blueprint Plugin.

I can still tell you how to do that, if you consider using Ramas Plugin:

You can right-click in your Content Browser and under Sound you can find Sound Class.

http://puu.sh/omL6h/6772e524a3.jpg

Create a new one and name it something like Main_VolumeClass. Now open that up and for every sub class you need, for example Music, Voice, FX, etc. you can drag out a new Child from the Main Node.

http://puu.sh/omL8C/ebfaf7ef0f.png

This will create a new SoundClass as Child in the same folder as the Main Class sits.

http://puu.sh/omLbk/7ce28f3d15.png

Now, in your AudioComponents, you can go to the Sound Section and expand the the Settings:

http://puu.sh/omLfi/1ba0e783d7.png

You need to hit the small arrow at the bottom to expand it to the view i have in the screenshot.

Now you can select one of the Classes you just created in the SoundClass Override

http://puu.sh/omLis/0dc77e5434.png

When you now download Ramas Victory Plugin, you should have a node like this:

https://forums.unrealengine.com/attachment.php?attachmentid=16829&d=1415702869

Every sound that has the selected Class set will get the updated Volume.

That’s in fact, the best solution i came across.

Ramas Plugin can be found here: [CLICK ME!][7]

Hope that helps you out (:

Old Topic, but since I ended up here seeking the same answer, I thought it would be worth sharing a vanilla solution for anyone who would pass by here.