0
\$\begingroup\$

I did something clumsy and seem to have deleted a scene and all the game objects in my unity project.

I have the whole project under source control and so I think I should be able to get it back, but when I reverted to an older version of the project, I still couldn't see the scene.

Could I have done something to hide the scene so that I can't see it in the hierarchy? What file(s) should I be looking for in the earlier versions of the project?

\$\endgroup\$
  • 1
    \$\begingroup\$ I think it's a simple .scene file \$\endgroup\$ – Bálint Aug 3 at 8:05
  • \$\begingroup\$ Awesome, that's the information I needed @Bálint \$\endgroup\$ – Dunderklumpen Aug 3 at 11:12
  • \$\begingroup\$ that's why you should a have version control system \$\endgroup\$ – trollingchar Sep 5 at 8:20
0
\$\begingroup\$

The answer turned out to be simple. I hadn't deleted the scene, I just closed it, and was able to get it back by opening it from Assets/Scenes

\$\endgroup\$
0
\$\begingroup\$

On deleting Unity assets there is a warning that the action is not undo-able. Nevertheless the deleted Unity assets (i.e. project files) can be restored from the Windows' recycle bin even if they were deleted from within Unity. I'm not sure about other OSes but I assume it would be the same.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.