Search Unity

Rect's and Image's borders and sizes are different

Discussion in 'UGUI & TextMesh Pro' started by kader1081, Feb 15, 2023.

  1. kader1081

    kader1081

    Joined:
    Oct 16, 2021
    Posts:
    379
    I realized that when I tried to strect the Image İt was way bigger than the place that I want to fit in Sprite-0001.png
     
  2. kader1081

    kader1081

    Joined:
    Oct 16, 2021
    Posts:
    379
    I was making a prefab of an Image than Instatiate it and make it child of a canvas and this happens. I set the size with width and height properties
     
    Last edited: Feb 15, 2023
  3. martinpa_unity

    martinpa_unity

    Unity Technologies

    Joined:
    Oct 18, 2017
    Posts:
    480
  4. kader1081

    kader1081

    Joined:
    Oct 16, 2021
    Posts:
    379
    okey thanks