Chunk Downloader DECLARE_DYNAMIC_MULTICAST_DELEGATE not found

Hi, I am following this workshop/tutorial of Unreal:

I want to create Chunk Downloader in my project.

I do not understand most things, regardless the code doesn’t work for me. I also got the source code from the tutorial, the issue is the same. I must have missed some step or something was updated since this was released.

Both function definitions DECLARE_DYNAMIC_MULTICAST_DELEGATE are highlighted in red and reports “not found”.

DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FPatchCompleteDelegate, bool, Succeeded);

DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FChunkMountedDelegate, int32, ChunkID, bool, Succeeded);

and

UPROPERTY(BlueprintAssignable, Category = "Patching")
	FPatchCompleteDelegate OnPatchReady;

UPROPERTY(BlueprintAssignable, Category = "Patching")
	FPatchCompleteDelegate OnPatchCompleted;

IIt is the same in source code.

What might be the problem?

1 Like

It appears that “not found” also appears when everything works as should. I had another error that was highlighting these two function definitions in red and it was misguiding actual problem.

I am not sure what fixed my issue but these two:

#include "Http.h"
#include "ChunkDownloader.h"

must be included in YourProductName.h headeer file

And

"HTTP"

Must be added in YourProductName.Build.cs like this:
PublicDependencyModuleNames.AddRange(new string[] {"Core", "CoreUObject", "Engine", "InputCore", "UMG", "PakFile", "ChunkDownloader", "HTTP", "Json" });