I want to send a Unity project to another developer (I’m on Win, he’s on Linux). I checked the size of the project and it’s almost 1GB (!): way bigger than necessary. 727 MB of this is in …/Library/PackageCache which contains folders starting with com.unity… Can I remove this folder (for online transfer) and have the other developer be able to reproduce it on his end? Also, in the main project folder, I see a bunch of .csproj files like Unity.2D.Sprite.Editor.csproj, Unity.IK.Editor.csproj etc (I’m not using either a Sprite Editor or the IK Editor). Can these be removed?
The Library folder isn’t something you need to send - the editor regenerates it when missing.
You should be really using source control for something like this. A properly set up repo will ignore your Library folder.
Exactly this ^ ^ ^ ^ what Uncle Bob says above. Expanding further, you REALLY want to use source control or else you’ll be back in here posting about why your project suddenly broke and you can’t figure it out.
Please consider using source control in order to guard and protect your hard-earned work.
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:
Source control is best. If you want to just share the project without teaching the other person source control though, still take a look at any git ignore file or any threads on what does not need to be included in source control. Make a copy of your project folder, and from the copy you delete anything mentioned in the git ignore file. Then create a zip file (or other compressed archive format) of what is left. Share that file.