So I have this strange problem with metasounds trying to do a simple thing (UE 5.4). I*('m wondering if it’s a bug or something I’m doing wrong.
If I set up a sound to not be a oneshot and assign a wav to to it in the metasound with attenuation, it will play no problem, no matter how many times I enter or leave the attenuation falloff.
If I change the wave variable to an input, it gets wierd. If I assign a default value to the input and don’t change the parameter in BP it also works fine.
If I leave it empty and then assign the wave to the metasound in BP then it works if I start in the attenuation area but it doesn’t work if I’m outside it, or exit and reenter.
The voice management is set to restart.
Using au.debug.sounds 1, I can see that it is restarting the metasound correctly, but it loses the assigned wave. The metasound is technically playing but there is no wave assigned. It won’t let me reassign the wave in realtime unless I respawn the audiocomponent which, of course, leads to lots of ghost audio components building up that play silently wheneve you enter the attenuation range.
I have tried everything. It’s such a simple thing. I’m trying to make a resuable object that you can assign the sound to whenever you place it in the editor. Basic BP stuff and it’s driving me crazy. Here are pics of the simplest setup.
It seams like once you leave the attenuation area, it forgets the assigned wav file and I can’t seem to find a good way to make it stay consistently.