Unity Editor extension that allows you to import custom packages into the selected Project folder, avoiding your project's root bloating.
This Unity Editor extension allows you to import custom package into the selected Project folder. It also has public API to let you run package import to folder from your scripts:
CodeStage.PackageToFolder.Package2Folder.ImportPackageToFolder();
See detailed API description in code.
- Open the Package Manager in Unity (
Window > Package Manager
) - Click the
+
button in the top-left corner - Select
Add package from git URL...
- Enter:
https://github.com/Code-Stage/Package2Folder.git
- Click
Add
Download the latest .unitypackage
file from the Releases section and import it into your project.
- Import the package to your project using one of the installation methods above
- In the Project window, select the folder where you want to import a package
- Use the menu item:
Assets > Import Package > Here...
- Select the
.unitypackage
file you want to import - The package will be imported into the selected folder instead of the project root
The package exposes a public API that allows you to import packages programmatically:
using CodeStage.PackageToFolder;
// Import package interactively (shows import dialog)
Package2Folder.ImportPackageToFolder(packagePath, targetFolderPath, true);
// Import package silently
Package2Folder.ImportPackageToFolder(packagePath, targetFolderPath, false);
💬 Discussions thread
🎮 Discord
See CHANGELOG.md for details about changes in each version.
This plugin is licensed under Mozilla Public License Version 2.0.
Please report any bugs and suggestions via GitHub's issues. Pull requests are welcome!
Have fun!