After migrating the project from version 4.9.2 to 4.10, the GetOwningPawn() return NULL.
I was working well in 4.9.2
void AKPlayerHUD::BeginPlay()
{
Super::BeginPlay();
// Retrieve the player controller
ThePC = Cast<AKPlayerController>(PlayerOwner);
// Get the owning pawn
ThePawn = Cast<AKPlayerCharacter>(GetOwningPawn());
Is there something changed with version 4.9.2 or is it a bug ?
Regards,
D.