I’m using AudioComponent in a GameInstance for persistent music, make sure you are calling UGameplayStatics::CreateSound2D
when a level is loaded ( BeginPlay for example ), not in the constructor.
I’m using UGameplayStatics::CreateSound2D
in a function called by BeginPlay when the first level is loaded.