Search Unity

Why 'Set Native Size' on UI is smaller compared to when I drag the sprite directly to hierarchy?

Discussion in '2D' started by Rechronicle, Feb 12, 2020.

  1. Rechronicle

    Rechronicle

    Joined:
    Dec 14, 2017
    Posts:
    32
    I set all the reference pixels for sprite and canvas to 16, but it still results in different sizes.
    UI image is far smaller compared to the sprite game object.

    So, why it's still different? Any reason behind it?

    Thanks!
     
  2. eses

    eses

    Joined:
    Feb 26, 2013
    Posts:
    2,637
    @Rechronicle

    UI system doesn't quite work like game object that has sprite renderer - and which one of the canvas rendering modes you use, also has an effect what the size of UI is...
     
    Rechronicle likes this.
  3. Rechronicle

    Rechronicle

    Joined:
    Dec 14, 2017
    Posts:
    32
    Hmm, alright I will try to delve and test around it to figure out what is happening. Thanks!