I’m getting an error every time I try to include DECLARE_DYNAMIC_DELEGATE_ThreeParams(); into my .h file. The error says “this declaration has no storage class or type specifier” and that FOnProgress is undefined. I’ve tried to include the Delegates/Delegate.h header file, but still getting the same error. I’ve also tried to regenerate my project but still didn’t fix this error. What am I doing wrong? Is it a bug?
#include "CoreMinimal.h"
#include "UObject/NoExportTypes.h"
#include "Http.h"
#include "Delegates/Delegate.h"
#include "Download.generated.h"
DECLARE_DYNAMIC_DELEGATE_ThreeParams(FOnProgress, const int32, BytesSent, const int32, BytesRecieved, const int32, contentLenght);
//
UCLASS()
class Download_API Downloader : public UObject
{
GENERATED_BODY()
public:
FOnProgress OnProgress;
};