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…
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?
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
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.