Search Unity

Question plz help with dropdown

Discussion in 'UGUI & TextMesh Pro' started by alpenstorm, Dec 31, 2022.

  1. alpenstorm

    alpenstorm

    Joined:
    Jun 1, 2020
    Posts:
    21
    so basically i made a script like this:
    Code (CSharp):
    1. public Dropdown drop
    and i put code on the canvas and i tried to put a dropdown in the variable and it didn't work
    demo:

    import drpdn.unitypackage into an empty project and try dragging the dropdown into the dropdown area on the canvas script
     

    Attached Files:

  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,727
    Without looking in the package, are you mixing up TMP_DropDown and regular Dropdown?
     
  3. alpenstorm

    alpenstorm

    Joined:
    Jun 1, 2020
    Posts:
    21
    wait
    the tmp dropdown is a different thing???
    WHY
     
  4. alpenstorm

    alpenstorm

    Joined:
    Jun 1, 2020
    Posts:
    21
    wow
    i changed the script to be TMP_DropDown and included using TMPro
    and it worked

    LOL
    why is it 2 different things tho?
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,727
    It's just two different libraries that came out many years apart from each other.
     
  6. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,481
    Please don't use the 2D forum for UI questions. There are dedicated UI forums available.

    I'll move your post.