I have CoreMinimal.h included. You cannot create a pointer for TSubclassOf, so how are you getting it to completely work?
class AItem;
USTRUCT(BlueprintType)
struct FItemStruct
{
GENERATED_BODY()
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Inventory")
TSubclassOf<AItem> myItem; //Error, does not compile. Cannot make it pointer either, error for being a pointer
};
[HR][/HR]
Omgosh duh… I forgot I could do that, Its been way too long since I’ve had to. Thanks! (This is my first time on these forums, idk how to, if I even can, accept your response as the answer)
[HR][/HR]
Thank you, that’s very good to know! I’ll certainly keep that in mind for future reference.