Search Unity

Button prompts and text boxes appearing the wrong places

Discussion in 'UGUI & TextMesh Pro' started by DustyShinigami, May 18, 2019.

  1. DustyShinigami

    DustyShinigami

    Joined:
    Jan 5, 2018
    Posts:
    529
    I've noticed that my button prompts and text boxes appear in the wrong places depending on the different computers I use. For instance, if I set the position of my buttons and boxes in a specific place on my PC, they'll appear in the wrong place on my laptop. What's the best way to fix this? Would they all need to be in World Space or something?

    Thanks
     
  2. DustyShinigami

    DustyShinigami

    Joined:
    Jan 5, 2018
    Posts:
    529
  3. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Most likely the resolution of those devices are different and as such, if you are specifying positions as absolute values, they will be at the correct position (absolute coordinate) but appear incorrect relative to the edge of the display.
     
  4. DustyShinigami

    DustyShinigami

    Joined:
    Jan 5, 2018
    Posts:
    529
    They're the same - 1920x1080. Though laptop screens are smaller... To fix it, would I need to specify a fixed resolution on the canvas?
     
  5. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    If the screen resolutions are the same, then the buttons / text should appear at the exact same relative position. If they do not appear to be at the same relative position, then verify those values / position to try to figure out what is going on.