Hello everyone. I created an 'Inventory" class that inherits from UObject. Now, in my blueprint character, i want it to carry a variable of type “Inventory”, but it isn’t showing up in my list of available types! I created another class, “Item” which inherits AActor, and this class shows up properly. Does anyone have an idea why i can’t create an instance of my Inventory class?
Here’s the code for my header file:
#pragma once
#include "Object.h"
#include "Item.h"
#include "Inventory.generated.h"
/**
*
*/
UCLASS()
class BARON_API UInventory : public UObject
{
GENERATED_UCLASS_BODY()
public:
~UInventory();
UFUNCTION()
bool AddItem(AItem *item);
UFUNCTION()
bool RemoveItem(AItem *item);
private:
UPROPERTY()
TArray<AItem*> Inventory;
UPROPERTY()
int32 MaxSizeofInventory;
};