Sprites Become Invisible (SOLVED)

I’m a beginner, and I’m making a 2D pong game in Unity 4.3. Yesterday, all of my sprites were displaying properly, but today I open up the project to find that some of my sprites had turned invisible.

They still exist, and I can see the wireframe when I click them, but they are not visible in scene view or in the game, even when it runs. As you can see from the pictures, one of the paddles, and one of the score barriers are invisible.

If I duplicate one of the invisible sprites, the duplicate is visible, but then another sprite turns invisible. All of those sprites, save the background and the camera, are on the same layer. I have restarted Unity and restarted my PC to no avail.

Can anyone tell me what’s going on here? Is this a bug, or did I possibly set something up wrong?

Thanks in advance :slight_smile:

I see that your SortingLayer in your SpriteRenderer is set to default, try changing it, that’s the layer system that determines render order for sprites. As it seems like this is a render order issue.

If you are using URP don’t get caught out by the same thing I did.
In my Forward renderer data I had removed the UI layer from the transparent layer mask. This doesn’t affect the rendering of the UI in game, but in the editor scene view it means no sprites are rendered, including the UI for no obvious reason…

In case anyone else come across this, I had a similar issue. I was in 2D mode and my sprite was rotated such that it was perpendicular to the camera, thus invisible. It is really obvious if you swap to 3D mode.

Alright, The same problem occurred to me when i relaunched my project. everything was invisible but the background was just present. After thinking about it i moved the background just to see and my project was present there. So the solution i found was to remove like delete the existing background and take up the same but from the assets again in order for your project to be back on top.