Quick answer: Unreal Header Tool met a type in a UPROPERTY, a UFUNCTION parameter or a return value that the reflection system does not know. Most often the struct or enum has no USTRUCT() or UENUM() macro, its header is not included above the .generated.h line, the name is misspelled, or it is a plain C++ type such as std::vector. Declare the type with the reflection macros and include its header, or take the UPROPERTY off the member.

You add one property to a header, press build, and the compiler never starts. A tool you did not ask for stops at your new line and says it does not recognize a type you can see declared two files away. That tool is Unreal Header Tool (UHT), and it has its own, narrower idea of what a type is. Below are both wordings of the error (it changed between UE4 and UE5), the causes from most to least common, and corrected headers for each.

The exact error in UE4 and UE5

UE4 and UE 5.0 print this:

InventoryComponent.h(21) : error : Unrecognized type 'FItemData' - type must be a UCLASS, USTRUCT, UENUM, or global delegate

Older UE4 releases print a shorter list, type must be a UCLASS, USTRUCT or UENUM. UE 5.1 replaced the header tool with a rewritten one, and the same mistake now reads:

InventoryComponent.h(21): Error: Unable to find 'class', 'delegate', 'enum', or 'struct' with name 'FItemData'

The path prefix and punctuation differ between versions and IDEs; the quoted sentence is the stable part. Both come from UHT, which runs before the C++ compiler. That is why the code can be valid C++ and still fail: UHT is checking something the compiler does not care about.

Why the header tool needs to know the type

Every UPROPERTY and UFUNCTION is described to the engine at runtime so that the editor, Blueprint, serialization, replication and garbage collection can use it. UHT generates that description, and to do so it must know what each type in a reflected declaration is: its size, its fields, how to copy it. It only knows three kinds of type: the built-in ones (int32, float, bool, FString, FName, FText, the container and object-pointer templates), types the engine declares with reflection macros (FVector, AActor), and types you declare with UCLASS, USTRUCT, UENUM or a dynamic delegate macro. Anything else is “unrecognized”, however real it is to the compiler.

What causes it

  1. The struct or enum has no reflection macro. A plain struct FItemData { ... }; used as a UPROPERTY. This is the most common cause.
  2. The declaring header is not included. You forward-declared the struct or enum, or relied on another file including it. For a struct or enum used by value that is not enough.
  3. A typo or the wrong prefix. FItemdata, ItemData without the F, UEnemy* when the class is AEnemy, or the old name of a type you renamed. UHT matches names exactly, prefix included.
  4. A plain C++ or unsupported template type in a reflected member. std::string, std::vector, TSharedPtr, TUniquePtr, TFunction. The name in the message is then often the wrapper ('TSharedPtr' or 'std'), not your type.
  5. A non-dynamic delegate. DECLARE_MULTICAST_DELEGATE creates a C++-only delegate. Putting it behind UPROPERTY(BlueprintAssignable) produces this error.
  6. The type lives in another module or plugin that your module does not depend on, so you could not include its header and fell back to a forward declaration.
  7. The type is declared where UHT does not look: inside a namespace, nested in another class, or inside an #if block of your own.
  8. An enum that Blueprint cannot use. Usually a neighbouring error, covered below, because the fix lands in the same place.

How to find which cause is yours

The error gives a file and line. That line is the property or function, not the type, so the next step is to find the type’s declaration. Search Source and Plugins for struct FItemData (or enum class, or class) and read what you find:

UHT stops early, so fix the first error in the output and rebuild before reading the rest.

Fix 1: declare the struct or enum for reflection

Broken:

// ItemData.h
#pragma once
#include "CoreMinimal.h"

struct FItemData          // invisible to UHT
{
	FName ItemId;
	int32 Count = 1;
};

Fixed:

// ItemData.h
#pragma once

#include "CoreMinimal.h"
#include "ItemData.generated.h"

UENUM(BlueprintType)
enum class EItemRarity : uint8
{
	Common,
	Rare,
	Legendary
};

USTRUCT(BlueprintType)
struct FItemData
{
	GENERATED_BODY()

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	FName ItemId;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	int32 Count = 1;

	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	EItemRarity Rarity = EItemRarity::Common;
};

Three things changed: the macro above the type, GENERATED_BODY() as the first line of the struct, and the .generated.h include named after the file. The struct name must start with F, and the type must sit at global scope: not in a namespace, not nested in a class.

Fix 2: include the header, above the .generated.h line

// InventoryComponent.h
#pragma once

#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "ItemData.h"                        // the fix
#include "InventoryComponent.generated.h"    // stays last

class UItemAsset;                            // enough for a pointer

UCLASS()
class MYGAME_API UInventoryComponent : public UActorComponent
{
	GENERATED_BODY()

public:
	UPROPERTY(EditAnywhere)
	TArray<FItemData> Items;

	UPROPERTY(EditAnywhere)
	TObjectPtr<UItemAsset> DefaultAsset;
};

When a forward declaration is enough, and when it is not:

Reflected member or parameterForward declaration enough?
UItemAsset*, TObjectPtr<UItemAsset>Yes: class UItemAsset;
TSubclassOf<AWeapon>, TSoftObjectPtr<UTexture2D>, TArray<AEnemy*>Yes
FItemData Item (struct by value)No, include the header
TArray<FItemData>, TMap<FName, FItemData>No, include the header
const FItemData& as a UFUNCTION parameterNo, include the header
EItemRarity RarityNo, include the header

On UE 5.1 and later, a missing include for a by-value struct can also get past UHT and fail one step later in the compiler, as an undefined or incomplete type in your header or in the .gen.cpp file. The fix is the same include. If the include is there but sits below the generated header, you get a different message, covered in #include found after .generated.h file.

Fix 3: plain C++ types and C++-only delegates

A member does not have to be a UPROPERTY. If the type cannot be reflected, pick one:

// Broken: C++-only delegate behind a UPROPERTY
DECLARE_MULTICAST_DELEGATE_OneParam(FOnHealthChanged, float);

// Fixed: dynamic delegates name their parameters
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnHealthChanged, float, NewHealth);

UPROPERTY(BlueprintAssignable)
FOnHealthChanged OnHealthChanged;

Fix 4: types from another module or plugin

If the include itself fails with fatal error C1083: Cannot open include file, do not swap it for a forward declaration. Add the owning module to your Build.cs:

// MyGame.Build.cs
PublicDependencyModuleNames.AddRange(new string[]
{
	"Core", "CoreUObject", "Engine", "InputCore",
	"GameplayTags"      // declares FGameplayTag
});

Common ones: FGameplayTag needs the GameplayTags module and #include "GameplayTagContainer.h"; FInputActionValue needs EnhancedInput; UUserWidget needs UMG. A plugin’s module must also be enabled in the .uproject. For your own second module, export the type with that module’s macro (struct INVENTORY_API FItemData), or UHT is satisfied and the linker is not: see LNK2019 unresolved external symbol.

The same reasoning applies to #if. UHT does not evaluate your own defines, so a USTRUCT inside #if MY_FEATURE is rejected or skipped depending on the engine version. Keep reflected types outside custom preprocessor blocks; WITH_EDITOR and WITH_EDITORONLY_DATA are the guards UHT understands.

Fix 5: enums that Blueprint can use

An enum exposed to Blueprint must be reflected, scoped and one byte wide:

// Broken: no UENUM, default int size
enum class EDoorState { Closed, Open };

// Fixed
UENUM(BlueprintType)
enum class EDoorState : uint8 { Closed, Open };

Without UENUM() you get the unrecognized type error. With it but without : uint8, UHT complains as soon as the enum is used in a Blueprint-exposed property or function, because Blueprint only supports uint8 enums. Old unscoped enums (enum EDoorState) must be wrapped as TEnumAsByte<EDoorState> in a property; for new code, use enum class.

How to confirm the fix

Close the editor and build from the IDE. Changes to reflected types alter class layout, and applying them to a running editor through Live Coding or Hot Reload is where corrupted Blueprint defaults come from. The build should get past UHT and into compiling .cpp files. Then open the editor and check the property in the Details panel, or for a BlueprintType struct, that it appears as a variable type in a Blueprint.

What Bugnet can and cannot do here

Nothing at compile time. This error stops the build on your machine, and no player will ever see it. The risk comes after it compiles: turning a plain struct into a USTRUCT, renaming it or moving it between modules changes what saved assets and Blueprints expect, and the fallout (a default that reset to zero, a null asset reference) shows up at runtime as a failed ensure, a failed check or a fatal error. Bugnet’s Unreal SDK files those with the engine’s error message, recent log lines and the game version, so a regression introduced by a reflection refactor is tied to the build that shipped it. How to read an Unreal Engine crash log covers what the message means once you have it.

Frequently asked questions

What does Unrecognized type mean in Unreal Header Tool?

A UPROPERTY, UFUNCTION parameter or return type uses a type that the reflection system does not know. Reflected members can only use built-in types, engine types, and types you declare with UCLASS, USTRUCT, UENUM or a dynamic delegate macro, with their header included.

What is the UE5 version of the Unrecognized type error?

From UE 5.1 the rewritten header tool says Unable to find class, delegate, enum, or struct with name followed by the type name. It is the same problem as the UE4 message and has the same causes and fixes.

Can I use std::vector or std::string in a UPROPERTY?

No. Standard library types are not reflected. Use TArray and FString in reflected members, or remove the UPROPERTY macro and keep the member as plain C++, accepting that it will not be saved, replicated or visible to Blueprint.

Is a forward declaration enough for a UPROPERTY?

For object pointers such as TObjectPtr, TSubclassOf or a raw UObject pointer, yes. For a struct or enum used by value, including inside TArray or TMap, no. Include the header that declares it above the .generated.h include.

Why does my enum not show up in Blueprint?

It needs the UENUM macro with the BlueprintType specifier, and it must be an enum class with uint8 as its underlying type. Blueprint does not support larger enum sizes.

Unreal Header Tool only knows types that carry a reflection macro and whose header is included above the .generated.h line. If the type cannot meet both, the member should not be a UPROPERTY.