Hi I keep getting the same message when trying to compile a basic HUD. I’m able to make it work in other projects, but not in this one. Here’s where the error keeps coming up.
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/GameModeBase.h"
#include "Penmen.h"
#include "HUDGameModeBase.generated.h"
/**
*
*/
UCLASS()
class GE_1_API AHUDGameModeBase : public AGameModeBase
{
GENERATED_BODY()
public:
AHUDGameModeBase();
virtual void BeginPlay() override;
virtual void Tick(float DeltaTime) override;
UPROPERTY(EditAnywhere)
TSubclassOf<class UUserWidget> HUDWidgetClass;
UPROPERTY(EditAnywhere)
class UUserWidget* CurrentWidget;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
int32 Score;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float Time;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
float Health;
APenmen* Avatar;
};
I also have a phot of the error.