more nonsense

This commit is contained in:
wonkyhonky2024
2025-05-09 16:02:07 +01:00
parent 38df8d5e81
commit c7d7856634
11 changed files with 90 additions and 64 deletions

View File

@ -1,13 +1,11 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "MyUserWidget.h"
#include <MyPlayerState.h>
void UMyUserWidget::NativeOnInitialized() {
auto ps = StaticCast<AMyPlayerState *>(GetOwningPlayerState());
if (ps == nullptr)
return;
opIdTextBlock->SetText(FText::FromString(ps->GetPlayerName()));
}
auto ps = StaticCast<AMyPlayerState *>(GetOwningPlayerState());
if (ps == nullptr)
return;
opIdTextBlock->SetText(FText::FromString(ps->GetPlayerName()));
}