Sound Attenuation NOT working

In my case the audio stopped working entirely when i enabled attenuation, so i had to attach the audio component to the actor, otherwise the audio wouldnt play:

WhooshAC = CreateDefaultSubobject<UAudioComponent>(TEXT("WhooshAC"));
WhooshAC->AttachTo(GetRootComponent(), "", EAttachLocation::KeepRelativeOffset, false);

In blueprint components are automatically attached but it seems but in c++ no

6 Likes