- Home /
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?
Answer by matthewroxby · May 26, 2021 at 10:57 AM
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
Your answer
Follow this Question
Related Questions
Canvas Screen Space Issue 1 Answer
UI Elements Not Rendering Properly on Android 1 Answer
Why can't I see my full canvas? 1 Answer
How do I make UI elements go behind my 2D game objects? 1 Answer
2D UI in 3D space 3 Answers