I’m writing an ACharacter derived class.
Calling GetController() in either BeginPlay() or overidden EndPlay() methods returns a nullptr, while calling GetWorld()->GetFirstPlayerController() properly returns the controller of my character.
GetController() works ok in all other methods called during the life of my character.
Why can’t I simply get my pawn’s controller using GetController() if APlayerController is a child of AController? Isn’t it true that an upcasted APlayerController will give me the AController possessing my character?