Importing sounds to Buttons in GUI

Hi guys… So sorry to bother you…

I’m trying to put some sounds on some buttons on the GUI… No problems on how to get a sound when a button is pressed, I was able to find it by myself, but the tricky part is getting a WAV file getting played… I did put some sounds on the button, but only a sound file that came with the engine… I imported the sounds to UE5, but when I try to add the WAV I want to play, the folder appears to be empty…

Anyone knows a workaround?

Thanks in advance

Hey EisP4nzer!

No bother, that’s what these forums are made for! You’re giving them life!

Ok so one little trick is drag-and-drop, then “Use what I have selected”!
Step 1: Drag your .wav (make sure it’s .wav!) into the folder INSIDE UE5. You can’t just drop it in the system folder, you have to drop it in the UE5 window at the spot you want in the content drawer.
Step 2: Select you .wav you imported and Ctrl+S to save it.
Step 3: Go to your “On clicked” Event on your button, and see this arrow here?
image
This arrow tries to put whatever you have selected in the content drawer INTO that dropdown!

Give that all a try and get back to us! We’re here to help or we wouldn’t be here :slight_smile:

1 Like

Hi…

Drag and drop, unfortunately does not work for me; I don’t know why, but I suspect is because I don’t use Windows File System (I use Linux Kernel running on Fedora 36)

When I want to import, for an example, materials or textures, I simply go to my file browser, and copy paste the images I want, and in the same second, UE5 asks me if I want to import them: I choose YES and then all the files are available to me on UE5; I tried this method for the WAV files, UE5 did ask if I want to import them, I chose YES, but the files are not available on the content browser; The moment I move or rename the files, outside the UE5, it asks me again If I want to import them; I always press IMPORT but the files never appear to me in the content browser; When I import the files, it shows a background message of importing the files, and no error messages whatsoever; That’s really weird to me.

When I drag and drop the files, this time with a different browser, it shows the following message:

Failed to import ‘/1.wav’. Failed to create asset ‘/Game/Wav/1’.
Please see Output Log for details.

So lame of me LOL, not reading the output log LOL

Error: Only 16 bit WAV source files are supported on this editor platform.

Going to try converting them

1 Like

OK, thank you so much for your effort…

I found why it wasn’t working… Converted to 16 BIT in Audacity and now it works

And I found 2 ways of inserting the sound:

  • The first one, when I was trying to add sounds to the GUI Button, there is a box that “says” play sound when pressed or hovered by

  • The second one you mentioned

Many thanks to all the community and I can’t say this enough times: I’m so relieved that I chose UE5 over Unity

1 Like