Search Unity

Bug 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

    I was making a prefab of an Image than Instatiate it and make it child of a canvas and this happens. I solved with setting the size with width and height properties Sprite-0001.png