Question by
CMI_Matt · Apr 17, 2018 at 07:09 AM ·
uimenu screen
Navigating multiple menus & scenes
Hi guys, I'm still very new at this and I'm trying to achieve something I believe to be simple,
I want to navigate a menu system, and once I change scene (button click), upon switching back to the menu (back button) I'd like to be in the same place I left off, currently each time I switch back to the menu scene it is back to the home screen, my menu is made up of multiple planes and buttons switching on and off (home menu, selection menu etc.) with button clicks. I use the following to change scenes:
public void Playgame()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
}
}
thank you
Comment