Is the initial instance created at runtime?
No, both instances are created during edit time.
Then at runtime, the player changes the instances' states and variables.
At one point, I need to swap the states of 2 instances.
I tried to use:
state1 = instance1.AsJSON
state2 = instance2.AsJSON
instance1 -> Set From JSON (state2)
instance2 -> Set From JSON (state1)
But it didn't work.
I had to set the state manually (i.e. save each instance variable to a temporary variable, then swap them, and so on...).
My question is: is there a way to use Set From JSON to set ALL the instance variables (i.e. state, in general) at once, instead of 1 by 1?