Lession 56 - API Test HUD

This commit is contained in:
Norman Lansing
2026-03-15 09:19:39 -04:00
parent f52a4225c3
commit 898fba8153
9 changed files with 70 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "UI/API_Test/APITestOverlay.h"

View File

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