Does my project folder need cleaning maintenance?

I have noticed that the total size of my game project folder is strangely large in size. Its weighs is almost 5 gigabytes. And Unity takes more time each day to load the project…

My scripts plus my sprites only weigh about 100mb. if I remember correctly I only installed cinemachine …
So, I don’t understand that big size…

So,I wonder if I have to do some periodic maintenance to the project to clean up the remnants garbage or something like that.

Or not? And how to do it?

Thank you so much!!

Unity temp-builds your project from Assets over into Library (next to it, and next to ProjectSettings).

There have been recent bugs where files in there grow unbounded but I think they have all been fixed.

There should be no issue with closing Unity and deleting Library (or moving it somewhere else) and then letting Unity reimport everything again.

In this same vein, please consider using source control in order to guard and protect your hard-earned work.

This lets you trivially and confidently delete Library anytime you suspect an issue. Library is NOT source controlled in Unity.

Personally I use git because it is free and there are tons of tutorials out there to help you set it up.

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

https://discussions.unity.com/t/807568/3

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

https://discussions.unity.com/t/826718/2

Share/Sharing source code between projects:

https://discussions.unity.com/t/719810/2

Setting up the right .gitignore file:

https://discussions.unity.com/t/834885/5

3 Likes

5GB is a small project folder :stuck_out_tongue:

Thank you so much for your help Mr. Kurt!!

Right now my game only has one player and one enemy … it only has a monochrome tilemap, no stage, no images, no sound. It only has movement scripts, states, controls and interfaces. And a info UI with 4 TextMeshPro. I think 5GB is too much… What will happen when i start to add more components and more scenes? The project will have 4TB weigh…

The Library folder can still use up a lot of space. For example, I’m looking at a super simple prototype project of mine with no assets. It is just code to see what I could do creating a multithreaded galaxy movement and gravity system. The Library folder is 1.5GB. 900MB in Artifacts, and another 500 MB between il2cpp_cache and il2cppBuildCache.

You need plenty of disk space for Unity projects. Any project I’m actually serious about usually ends up with a project folder more than 15GB.

1 Like

ok, so I think I’m going to have to uninstall some programs to get more free space on my disk … right now I only have 40GB available and I don’t know how far my project is going to grow …

Thanks a lot for your help Joe !!

1 Like