Remember UI setting from Previous Scene When Return to Scene
Sorry the tile of that sounded a bit confusing. But lets say I have two different scenes Scene 1 Scene 2
In scene 1 I have a UI that has a button and animation playing.
I exit scene 1 to scene 2 and then return to scene 1, now naturally the button and animation states have returned to their original staring state.
How do I make it so that if I leave scene 1 to scene 2 and then return to scene 1 that my button state and animation will be playing and my button is pressed or active?
I should also mention that in my 2nd scene there is a different canvas with a different UI on it so all of my scenes have different canvases with different UI images on them.
I have points to give away to anyone who can knock this one out of the park for me as it has been a pain in the backside for better part of a year now on this project.
O$$anonymous$$ this is weird, I find that if I add a 2nd canvas and name it SideScreens and then put my UI elements on that canvas with a Don't Destroy on it, what happens is that the information is carried across scene changes which for these slide in screens is O$$anonymous$$ because they are off to the side and out of view of the main canvas. I'll try to do a screen capture.
BUT when I come back into my main scene that has the button on the main canvas I can't seem to call the side screens to slide in, it like the original button on canvas 1 looses its connection or something.... most annoying and frustrating???
Your answer
![](https://koobas.hobune.stream/wayback/20220612050852im_/https://answers.unity.com/themes/thub/images/avi.jpg)