Search code examples
unity-game-engineunity-ui

Unity2D UI>Image doesn't show the full image and appears differently between two projects. Why is it doing this?


I added a Unity UI>Image to my project with a given source image (called Btn_OtherButton_Blue). It appears cropped in some way. It doesn't show the full button image, the top seems cut off. I added a UI>Image to a different project with the same source image and it appears differently. In that project it seems like it's using the full image uncropped.

I've compared the projects and can not find the difference. I'm new to Unity. There's probably something simple I'm missing. I have an imgur link to show what I mean.

https://i.sstatic.net/Y2C8u.jpg

The settings seem the same to me. Is there a crop property of UI>Image that's hidden that could determine why one project shows more of the source image than the other?


Solution

  • compare the settings of the sourcefile of each project. it looks like the image sourcefiles are using different values for "Pixels Per Unit".