Sprite not visible?
I'm sorry this has been asked before, but none of the solutions have worked for me. I made a simple background in photoshop and saved it as a PSD. Unity automatically set it as a Sprite (2D & UI) under import settings. When I dragged it in the hiecharchy, I can see it in my scene view but NOT my game view.
I tried putting the sprite in its own layer, making the layer appear first, and also setting the "Order in Layer" to a value such as 5. No dice.
Any advice on how I can make this sprite appear in gameview? Thanks. I'm using Unity 4.6b18
Answer by kacyesp · Sep 02, 2014 at 02:31 AM
In the scene view, drag the main camera over the sprite. Also make sure that the camera's z value is lower than the sprite's z value in the transform's position.
any idea why this would be good? my sprite is not in the scene, as i add it dynamically. it's in an asset.
"Also make sure that the camera's z value is lower than the sprite's z value in the transform's position." - excellent! Thank you very much!
This answer might be old. 2019 and up: Use UI --> Image Don't use 2D Object --> Sprite
Thanks! That Worked For $$anonymous$$e! Change Ur Camera Z To Around -10 And It Will Work
Answer by HorusVision · Apr 02, 2019 at 04:25 PM
Use UI --> Image
Don't use 2D Object --> Sprite
This sounds like a really arbitrary and unnecessary workaround. Shouldn't both methods work?
No, for UI elements, you should use UI components. A 2D Sprite is the thing you'd use when making, for example, a 2D player character. A UI Image, on the other hand, is rendered with the Canvas/UI system and was, well, built just for this purpose - Images in UI Canvases
Answer by HanSoloYolo · Mar 24, 2018 at 06:29 PM
None of the above worked for me.
I am doing a Vuforia Project with the AR Camera, the camera always defaults to 0,0,0 on Play.
My clipping near plane cannot be set to -1. The lowest value is .01 for near.
I cannot move the camera and I cannot set the clipping plane to -1.
Sprite plays fine in scene view. How to I get my sprite to show up in game view?
EDIT Got it working!
I set the canvas to Screen Space - Camera
Then set the Render Camera to Main Camera.
Answer by jtathir · Aug 11, 2017 at 06:47 AM
Make sure your camera clipping near value is set to -1. Hope this will help, i faced similar problem an d this was the solution.
Can confirmed this worked for me too. Had an image that didn't show up when playing, but did this and it was fixed.
i only got this problem when entering one specific scene, fiddling around with layer settings did nothing but this fixed it.
Answer by r4lax · Aug 16, 2017 at 04:27 AM
maybe you are in wireframe mode , i had the same issue i put it in shaded mode and works
Your answer
Follow this Question
Related Questions
2D-Sprite Bug? 1 Answer
Why is it that some sprites render in game view and others do not? 1 Answer
How to optimise 5000 sprites? 1 Answer
GameObject VS Sprite 2d 1 Answer
2D Sprite.Create isn't working 0 Answers