I have a Scene that has 2 Canvases - Main Menu and Level Selector (Has buttons for Level 1, Level 2 etc). When the game is initially loaded, The Main Menu Canvas is Active and the Level Selector is Not Active.
When you click on the Level Selector button, it swaps these around (Main Menu Canvas isn’t active and Level Selector is Active).
When I load a new scene (Such as clicking on Level 2) and press the back button to return to the above scene - obviously it resets to original state which is with the Main menu canvas - active , levels canvas- Inactive.
My Question is, How would you set the scene to be so that it goes back to the state where Levels canvas is active. I’ve read some things about OnSceneloaded but was unsure if that was the best way to approach this.