Use unitypackage files to share part of your project

Did you know that there’s an easier way to share your Unity project files than zipping it all into a single archive? Check the unitypackage file format!

Unitypackage is a basic distribution format of the Unity Asset Store and you might not have even known about it because it is completely transparent for the end user! Yet you can use it for your own purposes and share only a part or whole project. Just select files that you want to share, right-click and choose Export Package option from the context menu.

export package option

You may exclude some files from the package by unchecking them. Decide if you want to include dependencies needed for the assets to work (1) and then export the package (2). Note that Include dependencies option will always include all source files.

Export package window

Finally send the resulting unitypackage file to anyone that you want to share your work with and tell them to double-click on it. It’s just that simple!

0418fccf-6bee-4052-a8bf-0fe3828653b4

The receiver may choose if they want to import all files into the project or only a few of them. Then by clicking on the import button (1) selected files will be added to the project.

Why you should care?

You may ask “Why just not zip part of my project?”. There are at least three reasons why not to do it:

  • Unity caches its resources in the memory before saving it to the hard drive. Accidentally you may copy files that are yet to be updated.
  • You will not know if you zip all necessary files. Unity Export Package window allows you to include all needed dependencies as well.
  • If you have meta files disabled, zipping your files will break the references between them.
related
AdvancedTips
Use CustomEditor to customize your script inspector
When your scripts are getting bigger, then usually the number of properties is greater too. Unity,...
1
AdvancedTips
Use Invoke methods to execute code at a given time
What if you need to invoke a specific code in 2 seconds? You can write an accumulator that...
1
AdvancedGuide
Artificial locomotion in Unity using Machine Learning Part 2
Implementation Previously, in part 1, we looked at the theory of both ML-agents deep learning...
0
Call The Knights!
We are here for you.
Please contact us with regards to a Unity project below.



The Knights appreciate your decision!
Expect the first news soon!
hire us!