Package2Folder
Unity Editor extension that allows you to import custom packages into the selected Project folder, avoiding your project's root bloating.
net.codestage.package2folder Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/package2folder.git README Markdown
Copy this to your project's README.md
## Installation
Add **Package2Folder** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/package2folder.git
```
[](https://www.pkglnk.dev/pkg/package2folder)README
Package2Folder
Unity Editor extension that allows you to import custom packages into the selected Project folder, avoiding your project's root bloating.
Description
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.
Installation
Option 1: Unity Package Manager (Git URL)
- 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
Option 2: Unity Package (Legacy)
Download the latest .unitypackage file from the Releases section and import it into your project.
Option 3: Unity Asset Store
Import from the Unity Asset Store.
How to use
Option A: Via right-click menu (select folder first)
- In the Project window, select the folder where you want to import a package
- Use the menu item:
Assets > Import Package > Here... - Select the
.unitypackagefile you want to import - The package will be imported into the selected folder instead of the project root
Option B: Via companion window (any import method)
Whenever Unity's import dialog opens ā whether from Package Manager > My Assets, drag-and-drop, or the Assets menu ā a small Package2Folder utility window automatically appears next to it:
- Trigger a
.unitypackageimport from any source (e.g. Package Manager "My Assets" tab) - In the companion window that appears, click "Import to Folder..."
- Select the target folder under Assets/
- The import dialog updates to show the new destination paths
- Click Import in the import dialog as usual
Public API
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);
Support
š¬ Discussions thread
š® Discord
Changelog
See CHANGELOG.md for details about changes in each version.
License
This plugin is licensed under Mozilla Public License Version 2.0.
Contributing
Please report any bugs and suggestions via GitHub's issues. Pull requests are welcome!
Have fun!
No comments yet. Be the first!