Search Unity

How to avoid Images looking stretched when using customized anchors?

Discussion in 'UGUI & TextMesh Pro' started by zyonneo, Mar 11, 2019.

  1. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
    When I used customised anchor points for stretching my images according to different screen sizes,the image looks stretched in height when I set the screen to Iphone 6 resolution(750 x 1338) and looks stretched in width when I set to ipad resolution(2224 x 1668).How to set accurate for both screen sizes?Images are given below.


     
  2. Hosnkobf

    Hosnkobf

    Joined:
    Aug 23, 2016
    Posts:
    1,096
    add an AspectRatioFitter component and set it to HeightControlsWidth or FitInParent.