Search Unity

Click ui button to play animation(show buttons panel)

Discussion in 'Editor & General Support' started by Deleted User, Oct 13, 2018.

  1. Deleted User

    Deleted User

    Guest

    Any coders here who could help me with a really simple thing?

    pp22.PNG pp1.PNG
    I want to click on this red ui button and when i click on this red ui button i want a panel of buttons to appear (in upward direction) and when i re-click on that red button in panel i want the entire panel and the rest of the three buttons to go back to the previous state...
    For this i have made 2 animations in unity 1 which expands the panel and the other one which makes the panel to go down (back to it's previous state)...
    I would really appreciate if someone could help me with the code.
     
  2. I'm really not that great at Unity UI, I hate it, really. But if you create that icons on a separate canvas, you hide it, then create a an onclick event on the main icon and just show the canvas (enabled=true). Then when the user clicked any of the icons you hide the panel again.
    BTW, you put the controller mirrored on the icon
    <--- see my avatar