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 Scales automatically to resolution

Discussion in 'UGUI & TextMesh Pro' started by Sykoo, Nov 30, 2014.

  1. Sykoo

    Sykoo

    Joined:
    Jul 25, 2014
    Posts:
    1,394
    !SOLUTION FOUND!
    I just had to click on Canvas > CanvasScaler component then take "Scale with screen size" on Ui Scale Mode :) Hope this helps!
    Thank you for your answers!


    Okay, so I really cannot get this thing straight... I'm getting mad at the end and I've searched all over the place... but can't find anything at all! Just complicated videos...

    Please just tell me this thing:

    How do I make the UI automatically resize/scale/stretch to the resolution of the game?
    For example:

    This is how it looks on small resolution that I optimize the UI to (which I want it to look like always)


    But this happens when I make the screen bigger


    And if I make it smaller, then it just literally shrinks and flies off the camera... Please help me with this indivvidually and do NOT link me to a video, if you're up to saying just what I'm supposed to do in order to fix this - go ahead I would really really appreciate that!
     
    Last edited: Nov 30, 2014
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    Are you using a canvas scaler?
    Did you anchor the icons to the bottom left position?
     
  3. Sebioff

    Sebioff

    Joined:
    Dec 22, 2013
    Posts:
    218
    I guess you want these buttons to stay in the lower left corner of the screen? In that case the problem probably is that you didn't anchor them there.
     
    Sykoo likes this.
  4. Sykoo

    Sykoo

    Joined:
    Jul 25, 2014
    Posts:
    1,394
    Yes I did! And by the way I found the solution ^^ Thank you for your answers, Sebioff and Dantus.