I am trying to load a .WAV file into the game at runtime using the media player trough a UI. However I am not hearing anything. And before you ask:
- Yes, the file works correctly. Because the exact same code works when placed in a normal actor.
- Yes, all the booleans at the end return true.
- And yes, the event fires.
Here is my current code.
This code is in my UI.
And this code is in my actor.
The music gets played when I press “1”. But not when its called from the UI. I have also tried doing it via a replicated variable update function. But that gives the same result.
I just don’t get why this doesn’t work. First of, why can you not put the code in image 2 in the UI? Because when its played, it can be treated like a sound 2D. And secondly, why is it different if I call the same event from my actor vs my UI? This should be the same.
I think its a bug. But if someone has a solution, please let me know. Because this has been really frustrating. Thank you!

