It’s very weird that the compiler does not recognize FTexture
. In my build.cs file, I’ve added the following line:
PublicDependencyModuleNames.AddRange(new string[] { "Sockets", "Networking", "RenderCore" });
In my c++ header file, I’ve added the following line:
#include "Runtime\RenderCore\Public\RenderResource.h"
But, in that same c++ header file, the compiler complain about Unrecognized type 'FTexture'
:
USTRUCT(BlueprintType)
struct FGridImage
{
GENERATED_USTRUCT_BODY()
// Image of this item
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Helper")
class FTexture* Image;
};
Based on this reference (FTexture | Unreal Engine Documentation), FTexture
is a class and not a structure. So what went wrong?