Reproducibility steps
- Create a third-person template in UE5.5.3, Enable CommonUI plugin
- Create a UOverheadWidget base on UCommonUserWidget
- Add
OverheadWidget = CreateDefaultSubobject(TEXT(“OverheadWidget”));
OverheadWidget->SetupAttachment(RootComponent);
in
ATestCharacter::ATestCharacter() - Create BP_OverheadWidget base on UOverheadWidget, and set it as widget class in UserInterface of character
- Play as listen server, set player number as 2
void UOverheadWidget::NativeConstruct()
{
UE_LOG(LogTemp, Warning, TEXT(“NativeConstruct”));
Super::NativeConstruct();
}
TEXT(“NativeConstruct”) in UE5.4 log 4 times, but in UE5.5.3 only log 3 times.