Using buttons to open different panels

So i’m making a clicker game. I want to use different buttons to open a different panel. So if I click my “Upgrades” button, it opens the upgrade panel. Then if I wanted to open my “Mine” panel, it replaces the Upgrade panel vice versa. How would I do this? Just started using Unity today and can’t find an answer to this.

1 Like

This video may help (shameless self promotion).

Its also worth checking out the UI tutorials in the learn section.

And from the scritping API you probably want GameObject.SetActive.