Thanks! Now i know how to transfer values between levels and save game, but how to transfer an object? For example, I have an “Inventory” object (spawned Actor) on my Player. It has variables like “currentItems” which is array of “Item” Actors, etc… I want to save this object and load on different level. Do I have to spawn a new “Inventory” Actor and copy all the properties (so it would involve spawning all “currentItems” actors again from their saved classes?) one-by-one to it? Or maybe is there some way to duplicate an object?
To make this more clear:
I have an “Inventory” Actor that is spawned on Begin Play and attached to player.
It has properties like “currentItems” array which is array of spawned “Item” actors.
How to transfer something like this to different level/save game?