Lesson 67 - Portal Setup

This commit is contained in:
Norman Lansing
2026-03-22 17:18:22 -04:00
parent acc105c84d
commit 9fb60888ba
13 changed files with 156 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "UI/Portal/PortalHUD.h"
#include "UI/Portal/SignIn/SignInOverlay.h"
#include "Blueprint/UserWidget.h"
void APortalHUD::BeginPlay()
{
Super::BeginPlay();
APlayerController* OwningPlayerController = GetOwningPlayerController();
SignInOverlay = CreateWidget<USignInOverlay>(OwningPlayerController, SignInOverlayClass);
if (IsValid(SignInOverlay))
{
SignInOverlay->AddToViewport();
}
const FInputModeGameAndUI InputModeData;
OwningPlayerController->SetInputMode(InputModeData);
OwningPlayerController->SetShowMouseCursor(true);
}