Adjustment settings for background music in UE4/5

Music is an essential element of a game.

In the game settings, it is essential to set the sound level of the background music, and what we need is how to set the background music:

Prepare two blueprints, namely the sound effect class and the sound effect class mix .

Then open the sound effect class , we can see the picture below, create a new mixing modifier , mix the sound effect class we created into

Next, we can prepare a few sound waves: (The author here is short, and naturally we can also prepare long ones. If it is too short, you can turn on these sound waves and play them in a loop )

We select all the sound waves, modify the sound waves together , and replace all the sound effect classes of these sound waves with our own created sound effect classes :

Suppose here we start playing music:

Then we create a widget blueprint:

Make a text and a slider inside:

After making it like this, click on the slider and slide down to the right:

Then create the event:

Here we have the sound effect class created by ourselves above , and the sound effect class created by ourselves is mixed below, and then the changed value is connected to Volume .

Pitch is pitch and doesn't need to be changed.

I set Fade in Time to 0 because this value is similar to interpolation. If you set Volume to 0 (no sound), you will find that there will be a small piece of sound every time the sound wave loops, and it is set to 0, then there is no more.

result:

 

Supongo que te gusta

Origin blog.csdn.net/q244645787/article/details/130628768
Recomendado
Clasificación