Hello!
It is my first post here - I was looking for the same problem but I didn't find it.
I make a platform game with RPG elements. I would to have skill menu when some button is pressed.
When player click some button it open new layout and then show skills tree - when player click it again last layout is opening.
It's works.
BUT
When player back to game layout then all non persist objects are recreated.
I don't want to make all sprites persist because I want to have only one layout with persist enemies.
What can I do?