I cannot wrap my brain around how to do this. I have a series of objects in my game, all with user-defined variables set on them. I want to be able to save the position, parent and a bunch of other custom variables to a file so that they can be loaded into a scene at a later date. If someone could post some code or at least point me in the right direction that would be great!
Cool question. I hope it gets answered. I am more interested for debugging, though. Anyway, why don’t you prevent objects from being destroyed after you move to the next scene, retrieve their vars afterwards, instantiate new objects where you want them, assign them the vars and then destroy the first set of objects? It’s complicated, but it is the best I can offer you.