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

UI buttons

Discussion in 'UI Toolkit' started by mindstormmsev31313, Jun 14, 2020.

  1. mindstormmsev31313

    mindstormmsev31313

    Joined:
    Jun 14, 2020
    Posts:
    2
    Hello, I'm making a 2D game. Can I set the size of the UI buttons using millimeters instead of pixels. I need the button size to be the same on different devices.
     
  2. wwu39

    wwu39

    Joined:
    Nov 21, 2018
    Posts:
    25
    There is no way to know long is a physical millimeter on a specific screen because physical screen size and the display resolution is never correlated.
     
  3. mindstormmsev31313

    mindstormmsev31313

    Joined:
    Jun 14, 2020
    Posts:
    2
    Thanks I found a solution.
     
  4. stan-osipov

    stan-osipov

    Unity Technologies

    Joined:
    Feb 24, 2020
    Posts:
    31