You've already forked LuckyWorld
Optimizing WB_MainScreen
This commit is contained in:
@ -7,7 +7,9 @@
|
||||
void UGameUserWidget::NativeConstruct()
|
||||
{
|
||||
Super::NativeConstruct();
|
||||
if (ULuckyRobotsGameInstance* GameInstance = Cast<ULuckyRobotsGameInstance>(GetGameInstance()))
|
||||
|
||||
ULuckyRobotsGameInstance* GameInstance = Cast<ULuckyRobotsGameInstance>(GetGameInstance());
|
||||
if (GameInstance)
|
||||
{
|
||||
GameInstance->GameUserWidget = this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user