Search Unity

How can i make ui bigger if resolution smaller and ui smaller if resolution higher?

Discussion in 'Editor & General Support' started by FedeStefan, Jan 26, 2021.

  1. FedeStefan

    FedeStefan

    Joined:
    Aug 15, 2018
    Posts:
    221
    Hello, i wanted to make so the ui gets big if on playing on a small resolution like 4:3.
    On Unity UI System.
    Any ideas?
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,914
    Use a canvas scaler and set the scaling mode to constant physical size.
     
  3. FedeStefan

    FedeStefan

    Joined:
    Aug 15, 2018
    Posts:
    221
    It doesnt size it, instead it does spaghetti stuff and breaks the ui and if i go to 4:3, its just not changing the ui.
     
  4. FedeStefan

    FedeStefan

    Joined:
    Aug 15, 2018
    Posts:
    221
    I want it like UGUI, the old unity ui which was coded, So if you changed resolution, the ui size wouldnt change. only where elements would be at, so if you played at a small resolution, everything on the ui would be big, but if you played on a large resolution, everything on the ui would be small.
     
  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,914
    Then use Constant Pixel Size for the canvas scaler.