Lesson 56 - API Test HUD

This commit is contained in:
Norman Lansing
2026-03-26 21:38:50 -04:00
parent f093212884
commit 0fecdf2df7
10 changed files with 112 additions and 21 deletions

View File

@@ -0,0 +1,18 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "UI/APITest/APITestHUD.h"
#include "UI/APITest/APITestOverlay.h"
void AAPITestHUD::BeginPlay()
{
Super::BeginPlay();
APlayerController* PlayerController = GetOwningPlayerController();
if (IsValid(PlayerController) && APITestOverlayClass)
{
APITestOverlay = CreateWidget<UAPITestOverlay>(PlayerController, APITestOverlayClass);
APITestOverlay->AddToViewport();
}
}