Change Music During Gameplay in Unreal 5
HTML-код
- Опубликовано: 2 авг 2024
- In this video we learn how to fade in music tracks inside of our Level Blueprints. This is not a complex system, but a good way to start using music during gameplay!
00:00 - Intro
00:24 - Import Music
00:53 - Set Looping
01:26 - Create MusicPlayer
02:55 - Play on Level Begin
05:17 - Play On Trigger
08:16 - Final Result
Thank you so much! Very easy to follow your instructions and it worked the first time.
Hey, do you know why the second method isn't working with the VRPawn blueprint with teleportation. Is there anything else to be aware of?
Thank you so much!!! Very helpful
Nice stuff. Well explained. You earned my sub mate !
Hi, how do I get the music to stop on same trigger when crossing again? Thank.
Thank you!
Hey ◡̈ Do you know why the second method isn't working with die VRPawn Blueprint with teleportation. Is there anything more to be aware of?
this was so helpful I have to ask how would you go about adding sound effects to a character for instance maybe they swing a sword or you can here their feet patter along the floor as they are walking and running ?. I am currently in unreal engine 4.27
thanks
Thanks, good tutorial. How can I change music in game from a widget screen?
you legend
Do you have those sound tracks? They sound like they might be nice.
Hello AcDec
Love your video, I want to ask something, can you put more trigger more than 2? do you need to change the blueprint if you put more music and trigger?
sorry for my bad english 😅
Yep, if you want to change music based on level triggers you would just add more triggers inside the level and link them in the Level Blueprint the same way we do in this video. If you wanted to do music based on something else (low health or whatever) it would be more complicated.
I'm struggling right now with how to trigger a sound for indoors as opposed to outdoors. For example While outdoors I want the main music to play, when I enter a building I want another sound to play, upon exiting that building I would like the main outdoor music to play again. How can I go about that?
im sure there is a way to set outdoors and indoor to their own thing, but that might be complicated. i imagine that you could just do this method, where each indoor has its own audio triggers to change the music, and then in the code you could probably do an "event end overlap" type thing and it switches back to achieve the effect you are going for
Is there a way to make the 1st track fade out while the other fades in?
Yep! I added a video a few months ago on how to do cross fading:
ruclips.net/video/IfbU1z0Jwns/видео.htmlsi=AEOH7fJBYZMuUieR
@@acdev7027 You rock!!
Heyy little question, why does the file have to be WAV? Doestn mp3 work aswell? I know there is some quality loss, but does it have to be WAV?
I know historically Unreal has only accepted .wav files so it's what I've always done. I just tested .mp3 import and it didn't recognize it and classified it as 'generic media file' so I'm pretty sure they won't work, but maybe there's a way (not sure).
@@acdev7027 okay thank you very much!
It doesn't work