So basically, I have a function AddItem() that has APickup* as my input param, I check if my inventory TArray has that type of pickup. If yes, I increase the count of that pickup type; If not, I construct a new UObject of that type because I don’t want to lose information on my widget when I destroy it.
Now I simply want to map the properties that I have set up in blueprint, properties such as thumbnail, description, etc to my newly constructed pickup that gets stored in the TArray. How can I achieve that?