I'm trying to create a menu with several buttons which show other menus when clicked. I have a game object which shows a panel with a button when clicked. Clicking the button on panel 1 should toggle panel 2, but if panel 2 is hidden the button won't show it. If I leave panel 2 visible when I run the game, clicking the button hides panel 2, but clicking it again does nothing. I'm using the built in On Click () function with GameObject.SetActive and panel 2 dragged in from the inspector.