Is there a way to maintain component interacted state across multiple scenes?



I have a component with 2 states and I have an instance of that component on 2 separate scenes.

When a button is clicked on one scene, the component switches to the other state and then the page jumps to the other page.

The problem is that the same component on the other page has now reset states, but I want it to maintain the state from the previous page.

____

Example of failed solution: I tried the option where the component updates a global variable which switches the same component on the second page, but this is not a very elegant solution as the component looks a bit glitchy as it goes to the correct state immediately when the second page loads.

I’m hoping to find a way of doing this where it doesn’t quickly switch to that second state when the second page loads. Is there a way to maintain states across all components regardless of scenes? Or is there a way to set component starting states? Maybe this could be a feature request to have component states.