Hello community. So I am currently finishing up the c++ tutorial videos and I am currently trying to get UMG working.
I am on:A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums
I have gotten everything up to 11:30 working. I went through explorer to generate the project files so that I could include “Blueprint/UserWidget.h”
For some reason through I cannot assign the CurrentWidget to the created widget of the HUDClass. To be percise I am getting the following error:
error C2440: ‘=’ : cannot convert from ‘UUSerWidget *’ to ‘UUserWidget *’
//in the cpp file
if (HUDWidgetClass != nullptr)
{
CurrentWidget = CreateWidget<UUSerWidget>(GetWorld(), HUDWidgetClass);
}
//in the h file
//the widget class to use for our hud screen
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Rates", Meta = (BlueprintProtected = "true"))
TSubclassOf<class UUSerWidget> HUDWidgetClass;
//the actual instance of the hud
UPROPERTY()
class UUserWidget* CurrentWidget;
Does anyone have any advice/idea about the issue?