When played on phone,image gets stretched



I do not know why when playing on phone,the image get stretched

Set the ScaleType to β€œFit”. Or add a UIAspectRatioConstraint in the imagelabel.

2 Likes

It did not work,because there is also a textLabel below the image

Did you try both solutions? I gave two.

Yes(the textLabel is also present) i have tried Those two solutions and neither of them work.I will go and figure out what is the problem

Yeah,i Fixed the problem,Thanks for helping

There are a couple lot of things you want to keep in mind while making gui

  • Setting the sizing to Scale instead of Offset
  • Setting the AnchorPoint to (1,1)
  • i think u also use scale on position but i forgot :skull:
1 Like