This article explains how to export and import unity package in unity application.
A unity package is the collection of assets, like the zip file. Unity package allows to share and reuse unity projects and assets collections across different projects.
Export Unity Package
Export package allows you to compress and store the unity package. You can export the scene and any other assets in the unity project and can reuse it other projects.
Let’s prepare a simple scene to export a unity package. We will export this scene and will import in another project.
Steps to export Unity package:
- Navigate to Assets -> Export Package…
- It will open Export Package window. Uncheck items that you don’t want in the unity package. Click All to select each asset in the projects.
- Click on Export. It will ask you to name the unity package and save it any directory. The file extension will be *.unitypackage.
Import Unity Package
Import unity package allows to unpack the assets inside the package. You can use these assets in the current project.
Steps to import unity package
- Navigate to Assets -> Import Package -> Custom Package… (or any other standard package)
- It will ask you to open the unity package from the directory. Locate the unity package and open it.
- The unity package will open unity import window. Select the assets that you want to import in the project.
- Click on Import, the assets will be unpacked and will be imported to the project. Now you can use these assets in your current project.
- Open the scene that was imported using Unity package.
- You can also import standard assets packages that comes with unity itself like 2D and Cameras.
- You can also import unity package from Asset store. (Window -> Asset Store).
Hope you get to know about how to export and import unity package in unity application. Please post your comments for queries and feedback. Thanks for reading.
Latest posts by Gyanendu Shekhar (see all)
- Create fake shadow using blob shadow projector: Unity tutorial - October 2, 2018
- Using Reflection Probe: Unity Tutorial - October 1, 2018
- Difference Between Material and Shared Material: Unity Tutorial - September 23, 2018