// 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(PlayerController, APITestOverlayClass); APITestOverlay->AddToViewport(); } }