Search Unity

How to make Drop Down Menu on Button Click

Discussion in 'Immediate Mode GUI (IMGUI)' started by goyals, Sep 19, 2011.

Thread Status:
Not open for further replies.
  1. goyals

    goyals

    Joined:
    Jun 28, 2011
    Posts:
    61
    Hi,

    i have one button on GUI. On clicking this button I need to show drop down menu on GUI. I am not getting what to do?
    Please help.


    Sumit
     
  2. SteveJ

    SteveJ

    Joined:
    Mar 26, 2010
    Posts:
    3,085
    There isn't really a built-in "drop-down menu" in the GUI system. You could possibly make your own using a GUI Box that appears containing other GUI Buttons, or possibly look into some of the other 2D/GUI tools that are available for Unity.
     
  3. handsomePATT

    handsomePATT

    Joined:
    Nov 30, 2010
    Posts:
    574
    theres a script on the unity wiki for this.
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
  5. goyals

    goyals

    Joined:
    Jun 28, 2011
    Posts:
    61
    Thanks all. I am aware of this wiki page for pop up list. I have used this code.

    But I need to make a exactly drop down list # 3 in wiki page. I meant "ISLAND DEMO" list. Hope you understand.

    http://www.unifycommunity.com/wiki/index.php?title=PopupList

    Can anyone tell me how to write the code for this drop down list? I would be really appreciate for ur help.


    Sumit
     
    Last edited: Sep 20, 2011
  6. cyclSunity

    cyclSunity

    Joined:
    Jun 10, 2020
    Posts:
    123
  7. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    YOU'RE REPLYING TO A 9-YEAR-OLD POST. DID IT NOT OCCUR TO YOU THAT A LINK MIGHT NOT BE VALID AFTER NEARLY A DECADE. USE ARCHIVE.ORG FOR OLD LINKS.

    --Eric
     
    JoNax97 likes this.
Thread Status:
Not open for further replies.