I am following the steps mention in the thread Stream an asset from the internet, which in their code made the following function call:
TSharedPtr<FPakPlatformFile> PakPlatform;
PakPlatform = new FPakPlatformFile();
However, in my case the code failed to compile.
I have added forward declaration of FPakPlatformFile and have modified the two build.cs files to include dependencies as
PrivateDependencyModuleNames.AddRange(new string[] { "PakFile", "StreamingFile" });
However, the code failed to compile saying 'FPakPlatformFile': class has no constructors.
I understand that simply adding forward declaration is not sufficient. However, trying to include the header file IPlatformFilePak.h
resulted in a cannot open file
error. What should I do? What are the correct header files to include?