GetWorld()->GetFirstPlayerController() works for single player games (there’s some caveat in using that for multiplayer IIRC but I don’t have experience with that scenario).
GetWorld()->GetFirstPlayerController() works for single player games (there’s some caveat in using that for multiplayer IIRC but I don’t have experience with that scenario).