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. Dismiss Notice

UI size is not the same in Desktop and Mobile platform

Discussion in 'UGUI & TextMesh Pro' started by phuongdong008, Nov 29, 2014.

  1. phuongdong008

    phuongdong008

    Joined:
    Nov 13, 2014
    Posts:
    9
    Hi everyone,
    I create a button in Unity 4.6 by using Create -> UI -> Button
    However, the button size is different between platforms (Desktop and Android).

    Please look at the screen shoot below for Desktop and Android:





    As you can see, in Android, the button is pretty small and it is quite large.in Desktop. Could you explain this phenomenon for me?

    Thanks !!
     
  2. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    3,158
    Your button has a fixed size in pixels, and your mobile screen has a higher screen resolution. Set the Canvas Scaler to something other than "Constant Pixel Size": Manual
     
    phuongdong008 likes this.
  3. phuongdong008

    phuongdong008

    Joined:
    Nov 13, 2014
    Posts:
    9
    Thank you very much. It works perfectly.