Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

everything in my hierarchy is gone.

Discussion in 'Editor & General Support' started by LZKLNG, Apr 20, 2018.

  1. LZKLNG

    LZKLNG

    Joined:
    Oct 1, 2017
    Posts:
    6
    So I was working on a project in untiy and then, after I was done for the day, I saved and closed the project. However, today, when I opened it, all of the objects in the hierarchy were gone. I have no idea why this happened. and judging from the file of the project, it wasn't edited or anything, since the 'last modified' date is yesterday, when I saved my project. Please help me with this; if this is a problem with the engine, this needs to be fixed, as this has weeks, even months of work.
    I understand that I should have made a lot of backups, but it isn't something I have been doing routinely and I need a solution, rather than a way or prevention, at this very moment.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,399
    Load a scene. A project doesn't contain any hierarchy; scenes do. And yes, you need to use source control or at least make backups...it's not optional, ever, if you care at all about your data.

    --Eric
     
  3. LZKLNG

    LZKLNG

    Joined:
    Oct 1, 2017
    Posts:
    6
    I meant the scene doesn't have any gameobjects. Is there a solution to this?
     
  4. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,399
    Are you sure you loaded a scene? Scenes and projects are quite different things.

    --Eric
     
  5. rubydude

    rubydude

    Joined:
    Mar 26, 2022
    Posts:
    1
    Same thing happened to me. Its really depressing:(
     
  6. nugab2

    nugab2

    Joined:
    Oct 28, 2020
    Posts:
    1
    same thing happened to me, loaded the project, everything in the hierarchy was gone. Eric5h5's suggestion of loading a scene fixed it
     
  7. Pluemi82

    Pluemi82

    Joined:
    Aug 3, 2022
    Posts:
    1
    same here, i just loaded the scene in the scenes folder in the assets category.
     
  8. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,599
    I'm sorry you've had this issue. Please consider using proper industrial-grade enterprise-qualified source control in order to guard and protect your hard-earned work.

    Personally I use git (completely outside of Unity) because it is free and there are tons of tutorials out there to help you set it up as well as free places to host your repo (BitBucket, Github, Gitlab, etc.).

    You can also push git repositories to other drives: thumb drives, USB drives, network drives, etc., effectively putting a complete copy of the repository there.

    As far as configuring Unity to play nice with git, keep this in mind:

    https://forum.unity.com/threads/prefab-links-keep-getting-dumped-on-git-pull.646600/#post-7142306

    Here's how I use git in one of my games, Jetpack Kurt:

    https://forum.unity.com/threads/2-steps-backwards.965048/#post-6282497

    Using fine-grained source control as you work to refine your engineering:

    https://forum.unity.com/threads/whe...grammer-example-in-text.1048739/#post-6783740

    Share/Sharing source code between projects:

    https://forum.unity.com/threads/your-techniques-to-share-code-between-projects.575959/#post-3835837

    Setting up an appropriate .gitignore file for Unity3D:

    https://forum.unity.com/threads/removing-il2cpp_cache-from-project.1084607/#post-6997067

    Generally setting Unity up (includes above .gitignore concepts):

    https://thoughtbot.com/blog/how-to-git-with-unity

    It is only simple economics that you must expend as much effort into backing it up as you feel the work is worth in the first place. Digital storage is so unbelievably cheap today that you can buy gigabytes of flash drive storage for about the price of a cup of coffee. It's simply ridiculous not to back up.

    "Use source control or you will be really sad sooner or later." - StarManta on the Unity3D forum boards