How to setup a slide bar in a widget to set Sound Level

Hi All

Added a slide bar to menu to set sound sound level

Made it Set a variable.


In World BP, pull that and plugged it in. - No Change when I slide

HI All

Any help would be great.


I’ll see what I can do.

Any help would be great.

Bump again.

Sorry guys. Can not figure it out, or even some one telling me what I have done wrong.

Ok, worked one thing out.

Variable is not getting passed to Level BP.

The issue is, that the volume of the “play sound” is only set at the moment when the node executes. Updating the value after the node runs does not effect it. I think you should use an “AudioComponent” or an [Ambient] Sound Actor. You should be able to change the volume on it.

See here: [Ambient Sound Actor User Guide

Ambient Sound Actor User Guide in Unreal Engine | Unreal Engine 5.1 Documentation


Took a few mins, but changed to a Ambient Sound BP, widget was able to adjust quite easily.






Static game, so I never go anywhere. :slight_smile:

Cheers though, all the help will go in to brain for next game.

BTW if this is a level blueprint and this sound actor is static (it is always in the level), better create an reference to it instead of setting the volume on the first actor you find (because it will maybe break when you add a second actor). you can do so by selecting the actor and then “open level blueprint” and after rightclicking do “create reference to …”