Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by SuperMasterBlasterLaser · Sep 06, 2016 at 03:00 PM · c#uiguidropdown

UI Dropdown does not drop.

Hello.

I have encountered interesting problem. I place my Dropdown UI element in my canvas. By default this dropdown already has three elements to choose.

Then I click to start. When I click to this Dropdown element, nothing happens. Its hidden content which is needed to be chosed, does not show.

Why this is happening?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ProgrammingKing · Sep 28, 2016 at 05:17 PM 0
Share

I am having the exact same problem, were you able to find a fix?

avatar image G-Reusch · Oct 01, 2016 at 03:02 AM 0
Share

I'm experiencing something similar to this too. $$anonymous$$y dropdown works at first, but it stops working when I disable and re-enable it. It's very clearly being clicked but the menu refuses to open.

avatar image No_Username_Found · Sep 18, 2021 at 06:04 PM 0
Share

For those from google:

Be sure that you don't have an invisible UI element overlapping your dropdown. This commonly happens with Text elements that have a large bounding box to hold larger input.

The canvas detects clicks according to the the display order of the elements. So an empty, textureless, transparent element will intercept clicks for any element that renders behind it.

7 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by korober · Jul 26, 2018 at 03:40 AM

Also, check child object with name "Dropdown List" in DropDown root. It appears when you click on component to show drop down list. "Dropdown List" has Canvas and it's sorting layer is Default after creating. You can have other canvases on your scene with other sorting layers that will be hide your drop down list.

p.s. Also you should change sorting layer for object with name "Blocker". Blocker helps to close drop down list after tap (or click) on any other screen position.

I've wrote short script for example (is uses UniRx - reactive extensions and TextMesh Pro Drop Down List):

   [RequireComponent(typeof(TMP_Dropdown))]
     public class DropDownCanvasLayerSetter : MonoBehaviour
     {
         private TMP_Dropdown _dd;
 
         private const string BlockerObjectName = "Blocker";
         private const string CanvasDefaultSortingLayerName = "UI";
 
         private void Awake()
         {
             _dd = GetComponent<TMP_Dropdown>();
 
             _dd.ObserveEveryValueChanged(dropdown => dropdown.IsExpanded)
                 .Where(isExpanded => isExpanded)
                 .Subscribe(isExpanded =>
                 {
                     var canvases = _dd.GetComponentsInChildren<Canvas>().ToList();
 
 
                     var blocker = FindObjectsOfType<Canvas>().FirstOrDefault(canvas => name == BlockerObjectName);
                     if (blocker != null) canvases.Add(blocker);
 
                     foreach (var canvase in canvases)
                     {
                         canvase.sortingLayerName = CanvasDefaultSortingLayerName;
                     }
 
                 }).AddTo(_dd);
         }
     }
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by gbuckner · Oct 20, 2016 at 08:01 AM

I am having the same issue. I am using Unity version 5.4.2f1. The dropdown was working in my last version; however, not that I updated to the aforementioned version it does not work properly. Basically, i am able to select an item out of the drop box from the start; however, if I tap on the dropdown box a second time in order to make another selection it will not expand to show me my other options. PLEASE HELP...THIS IS FOR AN APP THAT IS IN PRODUCTION...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by hkhurana82 · Apr 18, 2017 at 04:39 PM

Seems this issue is fixed in 5.6 onwards but I have a work around for 5.5:

After making the canvas inactive, destroy the "Dropdown List" child of the DropDown. This will get created automatically when the drop down is rendered next time.

 Transform dropDownList = canvas.transform.FindChild ("<path>/<to>/Dropdown List");
 if (dropDownList != null) {
     Destroy(dropDownList.gameObject);
 }

Worked for me.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by BunnyTales · Mar 01, 2018 at 04:43 PM

Having this issue in 2017.2. Weirdly enough the dropdown only drops down when its anchor and pivot are in the center of the screen. If I set its anchor and pivot to the top of the screen then it won't drop down.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ilozen · Jun 06, 2018 at 09:08 AM 0
Share

For the record, it's still an issue. I have this in 2017.4.0f1

avatar image
0

Answer by javier-mazzurco · Jun 03, 2018 at 10:40 PM

Excelent workarround here https://answers.unity.com/questions/1350194/dropdown-not-showing-after-canvas-set-active.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

248 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Make image follow your cursor 1 Answer

Changing anchor positions on UI? 0 Answers

new Dropdown implementation incomplete? 1 Answer

Move UI object to center of screen while maintaining its parenting 2 Answers

Multiple Cars not working 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges