I have a save game system already setup in c++ that serializes all the actors and components with ISaveGameInterface. I have an Inventory Component that has TArray<UItemObject*> marked as SaveGame in UPROPERTY. When i load the game this array is somehow loading and i see my items BUT the variables that were changed during runtime like int32 Quantity were not properly saved so they does not load and set to their default values. So how can i properly save TArrays of my custom types?
I tried different things like defining << operator for my class and save needed variables but UE_LOG message in this function is not showing in the log so this is not even being called
I also tried to create array of structs that containing data related to objects but they also resets their values on load
Some code from the save system: