Initial Commit - Lesson 31 (Commit #1)
This commit is contained in:
31
Source/FPSTemplate/Public/UI/ShooterHUD.h
Normal file
31
Source/FPSTemplate/Public/UI/ShooterHUD.h
Normal file
@@ -0,0 +1,31 @@
|
||||
// Fill out your copyright notice in the Description page of Project Settings.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameFramework/HUD.h"
|
||||
#include "ShooterHUD.generated.h"
|
||||
|
||||
class UUserWidget;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class FPSTEMPLATE_API AShooterHUD : public AHUD
|
||||
{
|
||||
GENERATED_BODY()
|
||||
public:
|
||||
UUserWidget* GetShooterOverlay() {return Overlay;}
|
||||
|
||||
protected:
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
private:
|
||||
|
||||
UPROPERTY(EditDefaultsOnly, Category = "Overlay")
|
||||
TSubclassOf<UUserWidget> ShooterOverlayClass;
|
||||
|
||||
UPROPERTY()
|
||||
TObjectPtr<UUserWidget> Overlay;
|
||||
};
|
||||
Reference in New Issue
Block a user