x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Dynamically change sound volume in runtime?

Hello first time I post a question here. Really like the Unreal Engine 4, easy to use and also fast to pick up new things. However I have one question regarding the sound volume in the game. Can you access the variables regarding the volume in runtime and change it in a blueprint? The picture is taken in a sound class.alt text

Product Version: UE 4.10
Tags:
sound volume.png (114.0 kB)
more ▼

asked Jun 07 '16 at 10:39 PM in Blueprint Scripting

avatar image

NordicGamer
6 1 2 4

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

A brand new feature in 4.12 is the ability to change a sound class volume (by way of a sound mix) by using the SetSoundMixSoundClassOverride BP function. This will add/modify a new sound class adjuster in an active sound mix. So the steps are:

  1. apply a sound mix (using PushSoundMixModifier)

  2. Use SetSoundMixSoundClassOverride to override the sound class adjustment in the sound mix for the sound class you want to modify in real-time. Note that you do not have to add the sound class to the sound mix in order to override it.

more ▼

answered Jun 08 '16 at 12:50 AM

avatar image

Minus_Kelvin STAFF
912 23 4 31

avatar image NordicGamer Jun 08 '16 at 08:50 PM

Ah thanks a lot! Will uppgrade my project to 4.12 and see if I could get that to work.

avatar image samnater Oct 05 '16 at 11:09 AM

An additional note: the PushSoundMixModifier and SetSoundMixSoundClassOverride nodes need to be applied in your gamemode BP...at least that's the only place I could get them to work

avatar image magfund Oct 21 '16 at 05:07 PM

Samnater what about if you're running a dedicated server? The Game mode is not really accessible by the Local user.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question