Hi,
I created a custom c++ component based on WidgetComponent. The generated code won’t compile:
#pragma once
#include "Components/WidgetComponent.h"
#include "NpcStatusWidgetComponent.generated.h"
/**
*
*/
UCLASS()
class STARGRIND_API UNpcStatusWidgetComponent : public UWidgetComponent
{
GENERATED_BODY()
};
According to the compiler it can’t include “Components/WidgetComponent.h”. If I change the path to the actual location of WidgetComponent.h, the compilation fails because the generated file for WidgetComponent can’t be found.
Am I missing something major? Am I not supposed to derive from WidgetComponent? Or do I have to alter some configurations/makefiles so that the include paths for the widget component are set correctly?