0

I've looked at other threads but they don't seem to be applicable to my case. Here's the class. The macros and Unreal Engine 4 related.

USTRUCT(BlueprintType)
struct FWeaponInfo
{
    GENERATED_BODY()

public:
    FWeaponInfo() { }

    FWeaponInfo(AWeaponActor* InActor);

    UPROPERTY()
    TSubclassOf<AWeaponActor> Class;

    UPROPERTY()
    FName Name;

    UPROPERTY()
    FText Description;

    UPROPERTY()
    UTexture2D* Icon;
};

I've commented out all members including the constructor and I still get the error. This is an odd one..

George R
  • 3,784
  • 3
  • 34
  • 38

1 Answers1

1

I ran into this same error and tracked it down to a missing include, so it may be worth double checking that you're including the header for the USTRUCT in question.

I'll also mention I'm using GENERATED_USTRUCT_BODY() instead of GENERATED_BODY() - though I don't recall if that makes a difference.

Steazy
  • 383
  • 3
  • 12