Is it possible to have a layout save its current state so that when the game goes back to that layout, instead of resetting, it resumes from the state it was in before?
To give an example, lets say I have a turret defense game. One layout is the defense part where the player can place turrets and defenses. Another layout is say a shop or a level where the player can earn or unlock different defenses. Can I make it so that whatever defenses they place in the first layout will stay there when they change to the second layout and then go back to the first? Normally when it changes back to a the first layout it will reset to its original state, meaning all of the player's defenses they placed would be gone.