I have been trying to work on a global UI HUD that is visible on the main game screen, but disappears when transitioning to layout 2. I feel I have successfully been able to accomplish this, however, I have found that my global objects create another copy of themselves in the exact place as the original when I transition from layout 2 back to layout 1.
This increase in object count seems to only occur per the total number of layouts I transition to from the original. For example, if I had 3 layouts where I transition from layout1>layout2>layout3>layout1, there would be 3 sets of the original global objects.
I did some research looking at tutorials and searching the forums, but other than this example, https://www.scirra.com/tutorials/594/building-a-global-user-interface-ui/page-2 , I have not found much that would help with my situation.
It should be noted that my methods do vary slightly from the link above (in that project the UI page is revisited prior to restarting the main game, however, in my case, I would just like to transition from layout1 to layout2 and back akin to an equipment screen).
I have attached a capx example for those of you that are interested in taking a look.
Any guidance would be greatly appreciated.