Unity 2D not rendering images in Canvas

Hello,

I have been trying for about 3 hours now to get images in my canvas to render. Text will render, but anything using an image will not show up. I had designed the UI previously with no issues at all, and now when I sat down yesterday to try and test the project, all of the images in the UI are gone, and I’m left with only text.

I’ve tried the following:

  • Changing from Overlay to Camera Screen Space rendering
  • Ensuring the camera is in front of the images in the Z plane
  • Re-creating a new canvas with new images from the source files I’ve used to create the images
  • Starting a new scene, new canvas, and trying to add a new button

In none of these situations, does an image appear. I feel as if there was a setting I unchecked in one of Unity’s settings somewhere. I opened an old project and the UI works just fine, so it’s just this project.

Has anyone else encountered this?

chances are the problem is with your images and not your canvas. Assets can sometimes be altered by the engine for seemingly inexplicable reasons. Check that your images are still labelled as Sprite (2D and UI). If that doesn’t work, try using the raw image component instead

Just in case anyone ends here. Don’t worry. I was really dumb and made a parent object have (0, 0, 0) scale. So it was just not drawing anything. Check if this is your problem!