Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Trying to switch between Panels within the game.

Discussion in '2D' started by Five0GT, Aug 22, 2017.

  1. Five0GT

    Five0GT

    Joined:
    Sep 28, 2016
    Posts:
    7
    Ok, So i need to be able to have buttons in a group of panels. There will be buttons or tabs at the top that have names on them. I will need to click the buttons to switch back and forth through panels of buttons.
     
  2. radonthetyrant

    radonthetyrant

    Joined:
    Feb 14, 2014
    Posts:
    6
    So make sure a click on the tab deactivates the upmost panel with the rest of the tab-content-ui and activates the one it wants to show.
     
  3. LiterallyJeff

    LiterallyJeff

    Joined:
    Jan 21, 2015
    Posts:
    2,807
  4. Terko

    Terko

    Joined:
    Apr 20, 2013
    Posts:
    32
    Just a few days ago there was an asset released that does exactly what you want.
    It's called Woo Panels. There is a forum thread as well. Cheers!
     
  5. Hawk49011

    Hawk49011

    Joined:
    Nov 14, 2018
    Posts:
    1
    how would i do this??
     
  6. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    Hi @Hawk49011

    Not sure exactly what you are trying to do, but tabs are just a visual gimmick.

    Basically you have four buttons, and each button is mapped to a panel.

    When you press/click tab button1 you show panel1 and hide the other panels, and so on.

    BTW I know this is old thread, but you'll probably get better answers in UI area, if have problem with this.