Structs is for my case no satisfying solution as it does not allow for inheritance in blueprints. I researched UObject replication and found some posts how to do it. Currently I implemented a new C++ class and set it as my parent/super class for ItemData:
UCLASS(Blueprintable, BlueprintType, Abstract, meta=(ShortTooltip="Allows replication of plain UObjects."))
class INVENTORYFRAMEWORK_API UNetworkObject : public UObject
{
GENERATED_BODY()
public:
virtual bool IsSupportedForNetworking() const override;
};
bool UNetworkObject::IsSupportedForNetworking() const
{
return true;
}
Didn’t work yet but I think I’m on the right track. I will update and post the solution if I manage to fix this.