I am working on a tool that I want to now publish to the AssetStore. However, I ran into an issue. I want my tool to be imported into a 'Packages' folder. I have a root folder where in that folder there is a package.json file and another folder where inside there are all the tool files. These files are some images and precompiled dll files. I also have a special folder 'Editor Default Resources' folder inside the Assets folder, where inside I have a subfolder where I store some easy-to-access editor resources.
So my question would be how do I ensure that the root folder would be imported to a 'Packages' folder when imported from the AssetStore? Because in order to upload it to the AssetStore I need this root folder to be within the Assets folder.
I am a bit confused as to how this all works and would really appreciate the help.
Thank you
And, by the way, Unity's Asset Store Tools is installed in Packages/com.unity.asset-store-tools folder, not in Assets folder.
You can use "hybrid package". https://github.com/needle-tools/hybrid-packages.
I didn't test if it works properly uploaded to Asset Store (my asset is not ready yet), but it definitely works with .unitypackage (so should work with Asset Store).
upm-in-unitypackageThere are two options to install the package:
Install package by name com.needle.upm-in-unitypackage.
Or use custom registry to install it directly from Package Manager ui.
Name: OpenUPM
URL: https://package.openupm.com/
Scope(s): com.needle
For me, only option 2 (custom registry) have worked.
Now you can:
Assets/Export Package... menu to pack it into .unitypackage.Asset Store Tools/Asset Store Uploader menu. You will see new Local UPM Package option in the dropdown.Both .unitypackage packed with this tool or directly published asset in this way will be imported or installed in Packages/your-package folder.
There is quite good readme on this tool, read it if I was not clear enough :) https://github.com/needle-tools/hybrid-packages.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With