I don’t want to set two input in my function. So is there any shortcut to get a soundwave from a soundcue?
Finally I find a method:)
It can’t be done via blueprint. However, it can be done via C++ code. And the code is as follows:
USoundNodeWavePlayer* SoundNodeWavePlayer = Cast<USoundNodeWavePlayer>(SoundCue->FirstNode);
Sound = SoundNodeWavePlayer->GetSoundWave();