I have dropdown of Unity UI and it has one option. Its first option is selected but i dont why its selected option is not showing.
Asked
Active
Viewed 5,917 times
2
-
Is text field big enough to contain this text? Try to make it a bit larger to eliminate this option. – obywan Jan 11 '18 at 08:36
-
yes text is big enough already. I have make it more wide but the problem still not solved. – Muhammad Faizan Khan Jan 11 '18 at 10:28
-
I guess you can hit Play in Editor, select your option in Dropdown and take a look at Label object under Dropdown object in Hierarchy. It should be [like this](https://image.prntscr.com/image/D-YK6U7sSB6GlZZt6HaABg.png) – obywan Jan 11 '18 at 13:00
-
Its empty upon selection. I have manually added – Muhammad Faizan Khan Jan 12 '18 at 04:17
3 Answers
10
If you added that option through scripts you need to call Dropdown.RefreshShownValue();

user2533259
- 111
- 1
- 6
0
I solved this just by changing the font size of lable text under the dropdown. I delete the font size number, and it showed up. You can try.

Even Wonder
- 1,127
- 1
- 14
- 16