Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing size of dropdown in unity

I am having troubles with setting up larger size of dropdown...

as you can see the 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 ...

http://i.stack.imgur.com/BY0jZ.jpg

how do I change this please thanks ... I tried everything

I also noticed that some setting for those 3 dropped downs options don't appear in inspector till you hit play

Thanks in advance

Beri

like image 800
berir Avatar asked Jun 23 '16 14:06

berir


1 Answers

Given the default GameObject -> UI-> Dropdown hierarchy, here is an example for changing the size of the dropdown options:

example-dropdown

  • Dropdown > Template > Viewport > Content : Height 50
  • Dropdown > Template > Viewport > Content > Item : Height 50,
  • Dropdown > Template > Viewport > Content > Item > Item Label : Font size 24, bold, italic, Vertical Overflow

Source: Unity forums post by Zaflis

like image 74
sonny Avatar answered Sep 19 '22 02:09

sonny