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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Problems with GridLayout and UI in general

Discussion in 'Editor & General Support' started by Sumihomura, Jun 20, 2017.

  1. Sumihomura

    Sumihomura

    Joined:
    May 19, 2017
    Posts:
    33
    Hi!
    I have trouble understanding how to scale UI in order to make it look roughly the same on all resolutions.
    I've tried the Canvas Scaler but it seems I can't interact with the UI in the way I want without messing something else(for example, if I manage to give it the right size on the editor I find it moved towards the center on the simulation).

    I've also tried to check on google but maybe I'm not using the right keywords.

    Anyone knows where I can find videos or documentation for what I'm trying to learn? :)
    TY!
     
  2. PeterGeneral

    PeterGeneral

    Joined:
    Jun 5, 2015
    Posts:
    14
    Can you elaborate? What setings are you using for the canvas scaler.
     
    Sumihomura likes this.
  3. Sumihomura

    Sumihomura

    Joined:
    May 19, 2017
    Posts:
    33
    Thx for replying. :)

    The settings I use for the moment are

    UI Scale Mode: scale with screen size

    800 600

    match width or height

    width-height bar=0

    Reference Pixels per Unit=100


    It works and that's good :) The problem is that I've managed it with trial and error, and not really understanding what impact every single setting has on the scene itself, so I'm quite pissed because I'm programming for fun but especially to learn. :)
     
  4. Sumihomura

    Sumihomura

    Joined:
    May 19, 2017
    Posts:
    33
  5. DanielQuick

    DanielQuick

    Joined:
    Dec 31, 2010
    Posts:
    3,137
    Sumihomura likes this.
  6. Sumihomura

    Sumihomura

    Joined:
    May 19, 2017
    Posts:
    33
    To be honest, I've used them, and most of the times it gives me no problem. I still can't understand when to keep all the 4 arrows together and when to separate them though.

    Also, generally I put the anchor in the closest border center or border corner to the object I want to anchor. Is that all right?
    Sorry, maybe is very simple, but, when you don't know, everything is hard :)