Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

EditorGUILayout.Popup Dropdown Font Size

Discussion in 'Scripting' started by Josiah_Kunz, Feb 20, 2020.

  1. Josiah_Kunz

    Josiah_Kunz

    Joined:
    Jun 8, 2017
    Posts:
    9
    Hello!

    I am making a move animation editor tool for a project I'm working on. As seen by the figure below, I have two problems that I cannot find solutions to:
    1. The clickable area of the dropdown is not as wide as the popup itself.
    2. The font size of the dropdown is quite a bit smaller than I'd like (for example, the label "Move" is size 16).
    I've included a snippet of the source code as well. I would be grateful for any critique or opinion!

    Screen Shot 2020-02-19 at 9.10.06 PM.png
    Screen Shot 2020-02-19 at 9.18.17 PM.png
     
  2. Josiah_Kunz

    Josiah_Kunz

    Joined:
    Jun 8, 2017
    Posts:
    9