Using SoundCue in actor class?
I would like to access a SoundCue in one of my actor classes. I have an Actor class which contains a UAudioComponent member. The AudioComponent member is assigned a SoundCue class using AudioComponent::SetSound(). I set which SoundCue to use from the UE4 editor. THe AudioComponent member is then exposed through a blueprint method. I call Play() on it from my Blueprint. Only problem is I get no sound. Maybe it's my BluePrint? Or is this doomed to fail from the onset?!
My Actor header contains the following:
I've checked the validity of the AudioComponent, and the SoundCue, and they are both valid. Any ideas?
asked Jun 19 '16 at 04:51 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here