When I go to other layout from the first (previewing) layout, the (global layer's) global objects (in this case, they are an information panel's components, which should be only 1 set) regenerates on the new layout and make screen messy, so I made them(the newly generated ones) to be destroyed on the start of every layouts.
But, as this kind of work increase (since there are also other panels, like inventory panel, status panel, etc...) I started to think this is a bit silly, 'cause this means EVERY new layout generates an useless set of components → destroy them, and this must be nothing but a memory-wasting process.
In short......
How can I prevent the useless regenerating of the global objects on start of a layout?