Hundreds of "New Game Object" in scene...

Just when you think you thought you seen it all…

I was editing a scene in unity today and BAM! something is just off the charts weird… My Scene has thousands of “New Game Objects” (see pic below). Nothing in my code has any suspicious instantiate prefabs etc so I don’t know where this is coming from… it stops Unity in it’s tracks… I’ve tried closing Unity and reopening but it just brings Unity to it’s knees… I commented out any code I was working on today and reopened but it hasn’t solved the problem. I can’t open the project at all now to continue to work… even tried opening up in a more current editor and no sir… have to force it to quit!

If anyone has an answer I’d appreciate it!

Neat! Good thing GameObjects are cheap to create. The fact that it has no name likely means it was created simply with new GameObject();

You do have a warning in your console. See if there might be other stuff in there and try to fix it. That might actually be the source of the problem.

Either way, you should 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:

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

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

Share/Sharing source code between projects:

Setting up an appropriate .gitignore file for Unity3D:

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

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.

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