Let’s say you get all actors of a certain class from your level, and you want to store some of their variables in a SaveObject.
Is there a way to store those variables in some kind of “container”, like a structure, that doesn’t have those variables defined yet?
Basically, the “container” doesn’t know what will go inside, until you fill it.
Yes, structure - right click content browser ->blueprint ->structure
It seems you are looking for serialization.
The engine can convert all data to binary format and then store it as a byte array. It is also possible to “smear” data about variables back onto the object.
Thanks for the link. But I was hoping there was a way in blueprints, for a non-programmer like me.
Also, I don’t think it would be necessary to save more than a few variables that you actually need, instead of the whole actor, like the article says.
Yeah, I’m already using structs in different types of actors, that I’m saving in a SaveObject.
What I need to know is, is there a way to “append” all those structs together, basically.
You make the variable array. And you need the number variable(how much actors). Then clear array and ADD in a loop(number of “how much actors”).