Search Unity

Button rollovers don't align in full screen mode.

Discussion in 'UGUI & TextMesh Pro' started by MonkeyPuzzle, Jun 23, 2021.

  1. MonkeyPuzzle

    MonkeyPuzzle

    Joined:
    Jan 17, 2016
    Posts:
    119
    Been through a lot of posts on this. My button rollovers do not align with my buttons in stand-alone full-screen builds.
    • Things I have tried:
    • Making sure that there isn't any weird nesting. Canvas -> Panel with Auto Grid -> Buttons
    • Canvas has a canvas scaler. I have tried messing with that to no avail. I did constant pixel size and scale factor to get everything to fit - but without success
    • Adding this: gameObject.GetComponent<RectTransform>().localScale = Vector3.one; whatever it might do
    • Screen Match Width Height on Canvas Scalar and setting "match" to .5
    • Making sure the build resolution and the canvas scalar reference resolution are the same
    • Force Fullscreen on build
    The amount that the buttons are "off" is less towards the center, more towards the edges.

    I feel like I am missing something simple. Any help is appreciated! I know that there was a bug tracker or two on this but my understanding is that it was fixed. I think my version (2019.4.8f1) is above that, however.

    I am on and would like this to work on Mac and PC

     
  2. MonkeyPuzzle

    MonkeyPuzzle

    Joined:
    Jan 17, 2016
    Posts:
    119
    Giving up on full screen for now. I would love to find an answer to this!