Hello,
My friend and I are making a unity asset. In linux (Pop-OS 22.04), I was trying some final test but when I download the .unitypackage and trying to unzip it, a window show me what’s in the GZ file, I click on it and then I click “Extract” and choose /home/user/Documents/Asset as destination.
I have this message “An Error occured while extracting file”. I was trying to extract in /home/user/Documents so, this is not a permission issue.
So I tried with terminal :
tar -xvzf ./Downloads/packagename.unitypackage -C /home/User/Documents/Asset
but I obtain multiple documents with GUID number containing a “asset.meta” and a 'pathname" files
On Windows, I double clic on the .unitypackage and it opens Unity to import it.
Can someone help me to solve this on Linux ?
Open Unity. Assets menu > Import Package > Custom Package.
For anyone landing here from search: a .unitypackage is a gzipped tar where every asset sits in a folder named by its GUID, with up to three files inside: asset (the file itself), asset.meta and pathname (a text file with the original path). So after tar -xzf you can rebuild the tree by moving each <guid>/asset to the path written in <guid>/pathname, which is a few lines of shell or Python.
If you’d rather not write a script: I also made a free browser tool for this, Unity Asset Exporter. It opens a .unitypackage on any OS, Linux included, shows the files with their real names and folders, previews models and lets you download them (models can also be exported as GLB). Everything runs locally in the browser.
(Disclosure: I’m the developer.)