Search Unity

Dropdown menu font size problems.

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

  1. Paul-Boland

    Paul-Boland

    Joined:
    Jun 28, 2013
    Posts:
    50
    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.
     
    joi711 likes this.
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    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.
     
    joi711 and mbieschke716 like this.
  3. Paul-Boland

    Paul-Boland

    Joined:
    Jun 28, 2013
    Posts:
    50
    Thanks very much, that sorted it.
     
  4. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    Could someone say how to change material of the dropdown items
     
  5. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    1. Please don't dig out a thread which is almost 2 years old. Especially when your question is not directly related to the original topic. You are free to create a new thread.
    2. Maybe this video is helpful for you:
     
  6. coolamigo

    coolamigo

    Joined:
    Mar 28, 2020
    Posts:
    25
    Thanks! and you are right about the thread. But I was concerned that the Menu items that open up when we click Dropdown seem to always take default material.