- Home /
Unity UI Button distored
Hello,
I am trying to add a Unity UI Button in my scene, however, it is being distorted, as shown in the photo:
Changing the scale fixes the problem, however, I do not want to change the scale (I want to keep it at (1, 1, 1), because once I change it, the button for some reason does not resize to the canvas size - even though I put the anchor points where they should be - that's beyond the point, but if someone can cast a light on this part I will be thankful). So in abridge, I would like to remove the distortion on the sides of the button without changing the scale. I have tried tweaking everything but to no avail. Any help will be greatly appreciated!
Thanks a lot!
Answer by donutLaserDev · May 22, 2018 at 02:51 PM
Simply set the anchors like this and the button will not be stretched, and it will always stay snapped to the bottom of the canvas.
Your answer
Follow this Question
Related Questions
Editing RectTransform scale 2 Answers
UI Elements Move Animation Using iTween 2 Answers
How to animate UI rect transform which works for all resolutions 1 Answer
Converting to "Rect Transform" permanently deleted part of my project 0 Answers
Check if UI element is fully inside another UI element 1 Answer