This is more of a memory management issue because I am confused by the object's ability [which is awesome] to retain its state [position/whatever] when the game switch back to the layout it once visited.
Does that mean the objects are always in memory ?
Should I manually call upon the destruction of all object instances upon end of layout ?
Develop games in your browser. Powerful, performant & highly capable.
Typically they are destroyed automatically with two exceptions.
1. The object is global. It won't be destroyed when changing layouts and will go to the new layout with you.
2. It has the persist behavior. Actually it probably is destroyed but it's state is retained so if you ever go back to that layout it will still be in the same spot you left it.
The persist behavior is Magic !