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.
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.