How do I replicate an inventory?

Ah sweet, I didn’t know you could do that! Thanks.

I’ll just gives structs a try.

And I just don’t feel like it’s a very good way of dealing with an inventory(having each item spawned).

EDIT: Alright, so I’m trying to do the same thing with structs now, though I have no idea how to cast structs.
For example, I want to do this:


FItemWeapon weapon = Cast<FItemWeapon>(item);

where item is of type FItemBase.
How do I do this?

Also, how do I check if a struct is null? I tried these:


if (item)
if (item == NULL)
if (item == nullptr)

but they all give errors.