# Unrecognized type 'FTexture'

**URL:** <https://forums.unrealengine.com/t/unrecognized-type-ftexture/398902>\
**Category:** Rendering\
**Tags:** type, unreal-engine, question, CPP\
**Created:** [June 18, 2017, 4:58am UTC](https://forums.unrealengine.com/t/unrecognized-type-ftexture/398902 "2017-06-18T04:58:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pelangi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pelangi](https://forums.unrealengine.com/u/Pelangi)\
**Post date:** [June 18, 2017, 4:58am UTC](https://forums.unrealengine.com/t/unrecognized-type-ftexture/398902/1 "2017-06-18T04:58:10Z")

</div>

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](https://docs.unrealengine.com/latest/INT/API/Runtime/RenderCore/FTexture/index.html)), `FTexture` is a class and not a structure. So what went wrong?

---

<div class="post-metadata">

**Author:** ![cridia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cridia/32/772487_2.png) [@cridia](https://forums.unrealengine.com/u/cridia)\
**Post date:** [June 18, 2017, 9:47am UTC](https://forums.unrealengine.com/t/unrecognized-type-ftexture/398902/2 "2017-06-18T09:47:06Z")

</div>

I’m pretty sure the one you want is not FTexture, but UTexture.
