fucking 3d widget dog shit I should have just used normal ui
This commit is contained in:
@ -2,8 +2,12 @@
|
||||
|
||||
|
||||
#include "MyUserWidget.h"
|
||||
#include <MyPlayerState.h>
|
||||
|
||||
void UMyUserWidget::NativeOnInitialized() {
|
||||
auto ps = StaticCast<AMyPlayerState *>(GetOwningPlayerState());
|
||||
if (ps == nullptr)
|
||||
return;
|
||||
opIdTextBlock->SetText(FText::FromString(ps->GetPlayerName()));
|
||||
|
||||
OpIdTextBlock->SetText(FText::FromString("testo6667"));
|
||||
}
|
Reference in New Issue
Block a user