Strange bug with renaming the scene

Unity 2019.3.3f1

Would like to share a very strange bug I experienced after I renamed a scene.

Here is how I got it:

  1. I had another scene opened in hierarchy;

  2. in project window, I renamed the scene in question;

  3. I switched to the scene I just renamed - hierarchy showed empty scene (it wasn’t folded/collapsed view or anything like that). It was completely empty - no camera, canvas, objects, nothing at all. At first, I thought that it was just a new empty scene I accidentally created… negative - the original scene’s gone (
    https://www.youtube.com/watch?v=s9psTVHyzYU

  4. closing/reopening editor didn’t fix anything.

Was fortunate enough to have a backup of the project I was working on; still, had to spend time re-implementing some new features.

After I finished restoring the project, I closed the editor and also decided to restart Unity Hub (V2.2.2). However, i couldn’t restart it - it gave me error “Unity hub entry point not found…” Checking Apps & Features revealed that Hub was just updated to V2.3.0. Had to reinstall it myself to make it work.

Super strange…

Make sure to backup your projects!

P.S.: I tried replicating the bug, but it was unsuccessful.

Sounds like something that should be a bug report to Unity if you can reproduce it. You can just try saving the scene under a new name instead of renaming.

1 Like

Will do it if I ever be able to reproduce it. So far, no luck.
Thank you for advice!

The same thing happened to me after renaming the scene it was completely empty. I found out that it was because of the name i gave to the scene that caused this issue after renaming, it went back to normal.

2 Likes

Unity 2019.3.13f1

The same thing is happening to me. I cannot duplicate and rename a scene without losing everything in the new scene’s hierarchy.

just happened to me, didnt have backup for the new scene i was working on, lost the entire thing.

Occurred to me too. Only affected my first level (simple thing), but I rebuilt it three times before realizing what was occurring. Work around for changing name has been to create a new scene with the new name, copy all items in the previous scene, paste it into the same location, and deleted the old. Bulky, but until the bug is fixed the only way to ensure it doesn’t glitch out.

Unity 2019.3.14f1

Same issue here!

same issue with 2020.1, renamed a scene from the assets folder and had to recreate my entire scene

Lost me a good days worth of work to this.

same here! 2020.1.3f1

Me too, it was tragedy…

Same thing happening to me. And if I try adding something to the scene, save, leave, and reopen the scene, it disappears. It doesn’t save anything I add to it.

It looks to me as if there’s some background data to scenes that I don’t know about.

Essentially duplicate “SampleScene” which creates “SampleScene 1”. Everything’s fine, all is well. "I rename the Scene to “1”, and everything vanishes from the hierarchy.

Same bug here too

Exactly the same as BlobOfAwe : It seems to be impossible for me to duplicate an existing scene. Tried multiple work around without success, it always ends up with an empty hierarchy.

Hey all, I know it’s a bit late for answer this but it happened to me many times and I found a easy solution.
Apparently you can’t name certain things to scenes, for example (Splash, Title). If you name a scene like that it will be completly empty. But if you name it Splashh or Titlee it is ok. I don’t know why it happens neither how to fix it but I am telling you a way you can turn around it :slight_smile:

2 Likes

tried @cotevelino solution and worked for me. I was not able to use “StartScene” without it emptying the scene but “MainMenuScene” was a-okay.

1 Like

I can’t believe this happened to me as well. Luckily I could recreate the scene without too much effort, but it shouldn’t have happened in the first place. I still amazes me how “fragile” Unity can be at times. How simply renaming a scene can result in the total, unrecoverable loss of the scene.

1 Like

I’ve been seeing this issue in 2019.4.9f1.

Steps:

  1. Have a scene with some objects in it (lets call it SceneA).
  2. Duplicate SceneA (unity will automatically name the duplicate “SceneA 1”.
  3. Rename SceneA 1 to SceneB.
  4. Switch to SceneB and now this will be an empty scene as described in the posts above.

However, I found something interesting. If I after step 4 rename SceneB back to be called “SceneA 1”, then all objects will reappear in the scene. So to me this indicates that it’s probably an issue related to serialization/deserialization. Because the information are clearly saved somewhere since it can be recreated by reverting back to the Unity auto-generated name for the duplicate.

1 Like

Hi, I think I have found an interesting workaround.
3. Rename SceneA 1 to some other name. Find a “proper” name which will NOT cause this issue (via trial and error as mentioned above).
4. Switch to new scene and it should have all objects as the original one
5. Rename this new scene to SceneB, and now it should keep all objects as expected.

Try this out, it works for me.