Hi,
I have tried both Persist and Global but C3 seems not to maintain Instance Variable of an object from one layout to another... any solutions? Thanks.
Don't use both of those things at the same time. You need to decide if it's an object that remains in the previous layout (Persist) or an object that follows you through the layouts (Global)
Obviously I have already tried both methods alternately (not together) and it doesn't work.
Global object should definitely maintain its instance variables. Check in Debug mode - the most common mistake with global objects is adding them to every layout, so you end up with multiple instances of them.
Unfortunately it does not work even if I put in Global. I will try to remedy the problem with Dictionary...
Develop games in your browser. Powerful, performant & highly capable.
These features obviously work though, the problem is on your side. Check if you have events for destroying the instances and spawning them again on start of layout or something similar, this would override anything to do with Persist.