Lesson 56 - API Test HUD
This commit is contained in:
18
Source/DedicatedServers/Private/UI/APITest/APITestHUD.cpp
Normal file
18
Source/DedicatedServers/Private/UI/APITest/APITestHUD.cpp
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user