- Home /
2D Image not appearing in game but only in scene
Hello. I am trying to fix an issue in which my Image is not appearing in my game view. I am making a 2D game and I wanted my enemy to have a health bar on top of them the entire time. The problem is that when I make the canvas "World Space" its almost as if the image vanishes in the game view and when playing. I checked if it disappears, in the scene, while playing but it doesn't. It is actually doing exactly what I want it to do in the regular game which follows the enemy and remain on top of it. Anyone have any ideas for how to fix this?
if its a 2d game check the order in layer property of the canvas and if its 3d game make sure is not "behind" the objects
Its a 2D game. And I already have made sure the canvas is in the front layer but it is still not showing. The canvas is set to world space.
These are UI images though. It isn't a sprite or something like that.
Answer by dadyno · Apr 24, 2019 at 07:07 PM
I think somebody else had the same problem:
https://answers.unity.com/questions/1057863/help-sprite-showing-up-in-scene-but-not-in-game.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612195454im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UI Image source image not changing 2 Answers
Stop character from moving out of camera sight 1 Answer
Sprite import problem? 1 Answer
2D UI in 3D space 3 Answers
How can an UI Element know on which 3D Object it is pointing? 1 Answer