Search Unity

Canvas Images are smaller than Game Objects

Discussion in '2D' started by oddw, Feb 15, 2020.

  1. oddw

    oddw

    Joined:
    Nov 21, 2019
    Posts:
    4
    An image inserted to a canvas is smaller and not accurate in terms of pixels per unit compared to a Game Object with a sprite renderer using the same source image (which is accurate in PPU). Why is this happening?
     
  2. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,261
    Orthographic size of the camera also plays a part in the size of the sprite being rendered. With a canvas scaler set to the current resolution as reference the UI images should be the correct size, then you adjust the orthographic size so it matches.
     
  3. Primoz56

    Primoz56

    Joined:
    May 9, 2018
    Posts:
    369
    Also check the pixels per inch setting on each sprite itself