Is there a way to store different types of variables in one place, at runtime?

What types of variables are you going to be storing? Are you going to know the variable types before you store them? If you at least know the types you could just store them in an array, or map. For example, have a map where the key is the name of the actor, or even a reference to the actor itself if needed, some identifier to know where the data belongs or what it came from. Then the value could be a struct with all the data you want to be able to possibly save, or just a single value if you only need to save one thing, i.e. a float or string.

If you don’t know the type then you can do some things like that via C++ and utilize some of it via blueprints depending on what you’re doing. Though if you don’t know the types then you’ll want to make sure you have good ways of handling the data later when you need to retrieve it.