Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Help with gui pls?

Discussion in 'Immediate Mode GUI (IMGUI)' started by Tomate2255, Apr 18, 2014.

  1. Tomate2255

    Tomate2255

    Joined:
    Jan 6, 2014
    Posts:
    4
    Hey

    I got a problem with buttons.

    On my pc it looks very good but on my mobile the button got pressed more together.

    Pls help thx.

    (the picture is how it looks on my pc)
     

    Attached Files:

    Last edited: Apr 18, 2014
  2. _met44

    _met44

    Joined:
    Jun 1, 2013
    Posts:
    633
    Hi, assuming you're using the built in GUI, you calculate the width/height based on the size of the screen right ?

    You might want to either use a fixed size for your button, or use only one of the sizes of the screen to calculte the size of the button and use its width/height ratio to calculate the other side...