- Home /
Button position scaling weird
My game seems to scale perfectly with potrait resolution (tested on android phones).
But all my buttons are moving to the right.
What is causing this?
Canvas Scaler settings:
UI Scale Mode: "Scale With Screen Size"
Reference Resolution: "X: 1080, Y 1920"
Screen Match Mode: "Match Width or Height"
Match: "0.5"
Reference Pixels Per Unit: "100"
The Button:
The Inspector:
Answer by Cuttlas-U · Sep 27, 2017 at 01:37 PM
hi; its about your buttons not canvas scale setting; look at the Rect Transform component of your button and check its Anchor; it should be around the Button ;
I can assure that it's not the anchors.
Wether I position the anchors around the texture of my round button or the button box itself the buttons still move to the right.
can u send some screen shots from the button and inspector ?
Your answer
Follow this Question
Related Questions
Button rect transform top 0 Answers
how to test Buttons 1 Answer
UI Button Link breaking after scene load 0 Answers
UI not scaling correctly with screen resolution 1 Answer
Objects move when changing resolution 2 Answers