Changing Global SFX volume.

Hi everyone !

I have a new question today; I’m working on my option menu, I manage to set with a slider the music volume.
But I can’t find how to set the global sfx volume (every sound played in the game, usually attached to an actor blueprints like explosions; fire sound, voice etc …).

Could someone point me to a direction ? Many thanks !

.

I’m not quite sure how you’ve already hooked up a slider for the music volume but the normal way of controlling this would be to use SoundClasses. There’s nothing inherently part of sounds to say that they are SFX, you would have to set up their SoundClass yourself and create a hierarchy of SoundClasses for your project. For example, here is the view of the ‘Master’ SoundClass from the ShooterGame sample.

The SFX SoundClass has multiple children to further categorise different types of sound but volume changes to the SFX class will affect all of its children as well.

Hi mgriffin.

Thanks for your reply.

Right now how I set up my slider is pretty dirty (I guess), I just have an float variable called MusicVolume, it start at 1, when I press left I remove 0.25, on Right I add 0.25 to the variable. And everytime I press left/right, I got a custom event in the MusicBlueprint that call the variable. Yes, I know it’s dirty, but I couldn’t find another way.

For the SFX it’s more difficult as I will have sound played from a lot of different blueprints.

But soundClass looks like a great way to go. I’ll have a look later today and I’ll let you know how it goes !

Thank you very much!