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"

Volume Slider

I've set up a simple slider and used the OnValueChanged node and hooked it up to my sound, Now my sound plays on event construct and then when the value is changed i link up the float output to the volume Mulitpler, but when i use this slider the sound does not change at all.

Product Version: UE 4.12
more ▼

asked Oct 22 '16 at 03:35 PM in Blueprint Scripting

avatar image

131 26 25 35

avatar image Holybreath Oct 22 '16 at 04:03 PM

Screenshots please

avatar image Koaku Oct 22 '16 at 04:12 PM

alt text That is how i have it setup

avatar image jolihuchxa STAFF Oct 24 '16 at 11:29 AM

Are you trying to change the volume of a looping sound, or a one shot sound? If looping, the setup would be a little different.

avatar image Koaku Oct 24 '16 at 03:34 PM

looping sound

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

You need to make your looping sound an audio component. Change the Play Sound 2D to Spawn Sound 2D and connect your SoundCue to it. Right click on Return Value and promote to variable (this will Set an audio component that you can name however you like). Then get the audio component and connect it to Set Volume Multiplier like shown and it should work.alt text

volume.png (117.5 kB)
more ▼

answered Oct 24 '16 at 05:32 PM

avatar image Koaku Oct 24 '16 at 08:49 PM

Hi yes!! it worked, kind of basically I have about 3 widgets the music plays on widget one and you dont get to change the volume till widget 3. Widget 1 Belowalt text

Widget 3 Below

alt text

So I want to be able to access the audio from widget one and change its audio from widget 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

What i think is happening here is

Updating variable wont change the volume of already playing sound. Details : - Your sound begins to play with the default value, and wont dynamically change if you change Music Volume - If you want sound to change, you must stop current sound, and play new one, with updated value.


  1. Make your sound a variable.(MainMenuSound of type SoundCue)

  2. Feed it to your play sound 2D

  3. OnValueChanged, try setting a new volume to your sound variable (MainMenuSound)

more ▼

answered Oct 24 '16 at 08:12 AM

avatar image

383 10 7 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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