I can't see anything in my scene or game view.

Hi. I’m new to unity and was following the Ruby 2d Adventures class. Everything was going fine until i deleted a prefab that appeared red in my hierarchy and everything in my scene disappeared. I closed and reopened Unity but nothing changed. I looked for some solutions online but nothing seemed to work for me. Any help would be greatly appreciated. Following is a screeenshot of my screen.

EDIT: I noticed my “Sprites” folder vanished (I apparently deleted it without noticing…) and that was what caused all my troubles. After restauring it everything came back.

Try select one of the items in the hierarchy, put your mouse over the Scene window and press F.

This does an Edit → Frame

If it doesn’t work, try doing the same with a few other objects in the scene.

Then try perhaps resetting Layout in the upper right corner, and then retry the F trick above.

3 Likes

When i frame the object it shows that it exists in the scene, i just can’t see it. I tried resetting the layout too but to no avail.

6913790--810647--imagem_2021-03-08_151013.png

Upper left corner of scene, you’re in Wireframe mode. Select Shaded

Tried it and still, no change…

Looks like you’re in 2D mode. Is that on purpose?

Yes, I was following the Unity class Ruby’s 2D Adventure

I realised now that i mistakenly deleted the whole “Sprites” folder in accident. After restauring it everything came back, thanks for everyone’s help.

This absolutely worked for me. Thanks.

The problem for me was the camera projection got changed from ortographic to perspective. Another reason it can happen is if the camera’s z position is set as the same z position as the 2d game world (typically 0). The camera has to be positioned on the z to be away from the 2d game plane, so z value should be -1 or -10 or something like that.

1 Like

I just needed to re-open the Game tab. Right Click on a tab (e.g Game) → Add Tab → Game

1 Like

i have tried these and still cant see anything in my game view or the scene view and when i press play nothing happens

same as me what do i do

I had the same problem but you just need to restart unity


what to do?

Worked for me, thanks.