Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Dropdown menu font size problems.

Discussion in 'Unity UI & TextMesh Pro' started by Paul-Boland, May 14, 2018.

  1. Paul-Boland

    Paul-Boland

    Joined:
    Jun 28, 2013
    Posts:
    35
    Hi Folks.

    I have placed a dropdown menu on screen allowing the user to pic a saved game file to load. I managed to increase the size of the font on the dropdown menu items by going into the Item properties and setting it to 30. But the actual dropdown cells are still small in height and the text is clashing with other entries. Also the text in the actual closed menu is still small. How do I fix these two issues?

    Paul.
     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    394
    In the Template Object there is a hierarchy: Viewport -> Content -> Item.
    You have to set the height of the Item as well as of the content to - let's say - 40.

    Increase the height of the dropdown object itself. Then increase the font size of the "Label" inside the dropdown object.
     
  3. Paul-Boland

    Paul-Boland

    Joined:
    Jun 28, 2013
    Posts:
    35
    Thanks very much, that sorted it.