1

https://i.sstatic.net/6QpuI.jpg

Check the link for details.

When I'm running my app (that contains the DropDown feature) on my Android Phone, the dropdowns that apears from DropDown menu is really small, even tiny. I tried to set resizeTextForBestFit and resizeTextMinSize/maxSize + change Rect.height of ViewPort (where the dropdowns placed) but it doesn't work. The Scroll Rect on Dropdown List controlling the size. So how can I fix this issue?

7
  • 1
    Where is your code? Commented Jul 11, 2016 at 15:14
  • I am having troubles with setting up larger size of dropdown..A standard size of dropdown is 160 x 30 so when you click on the dropdown arrow the 3 options below (A B and C) are same size as above and all have same font size ... But I need to use Larger size of dropdown, so when I increase the size of it to 320 x 60, and change the font size to 5O... the change does not affect the 3 options below , A B C still have original size of 160 x 30 and original font size which is now way too small .. Commented Jul 11, 2016 at 15:19
  • 1
    are you using screen space -overlay canvas? Commented Jul 11, 2016 at 15:48
  • hi @MXD. As you know, you don't actually use "code" in a graphical IDE! The advice you often see on SO about "posting code" is as out of date as many other things on SO. Commented Jul 11, 2016 at 16:03
  • Are you using new UI or legacy GUI? Commented Jul 11, 2016 at 18:09

1 Answer 1

3

Always choose

"Screen Space - Overlay"

and

"Scale with screen size"

enter image description here

It's just one of those weird things about Unity ... 99.9% of the time you use that setting.

In the current version of Unity, Unity screwed-up and set the default wrong.

Only in extremely obscure situations would you use the other settings: it's a huge source of confusion that Unity have the defaults as the wrong settings.

You could have another problem but be sure to do that.

Sign up to request clarification or add additional context in comments.

4 Comments

Correct! You may want to set other properties (Reference Resolution and match) based on screen resolution and height/width ratio.
Right. A lot of hobbyists starting out with Unity don't really understand the reference concept (it's only a reference). And the "match" concept is an outstanding part of unity's (excellent) reactive system, but it's hard to understand unless you, uh, understand it.
Well this is a key to a lot of problems when working with IOS devices as iPhone 5 has different ratio than others
yes, it's definitely a powerful and important feature of Unity - - - but also quite difficult for new programmers to understand. BTW I guess the OP here perhaps also has other problems! :O

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.