This package helps to automate some Unity package manager tasks and fill in some feature gaps.
Picture of the git update window that lists any outstanding git package updates.
- git package dependency resolving
- Detects git package updates by checking the remote source
- Update checks are offloaded to another thread to be as low on performance as possible
- Update checks are done periodically
- Creating an optional blacklist where you can avoid to resolve certain dependency based on their unique identifier.
This package makes some assumptions you should be aware of:
- There is no compatibility check for dependencies, the system will always initiate the download of the newest git dependency
- Same for update checks. The system will only look for the latest release and download the newest version.
- Add https://github.com/Gentlymad-Studios/PackageManagerTools.git as a git url to your unity project using the standard package manager
- Add git dependencies to the
package.json
you want to use. The syntax for this is like so:
"custom_gitDependencies": {
"com.gentlymadstudios.editorui": "https://github.com/Gentlymad-Studios/EditorUI.git"
},
- If you are not using github, specifiy a link in you package.json where the system can retrieve the
package.json
for remote version checking.
"custom_packageJsonLink": "https://raw.githubusercontent.com/Gentlymad-Studios/EditorHelper/master/package.json",
- Add your git packages via the package manager as usual.
- If you have valid git dependencies, these should now be automatically installed after your main package installed.
- If you want to update git packages more conveniently, open the
GitUpdateWindow
found underTools
.
If you need to prevent or excempt certain depedencies to automatically resolve you can add a blacklist. This is useful in cases where a dependency might already be available in your project (e.g. as a plugin or embedded in your project view).
To create a blacklist you need to:
- Right click in your project view in Unity and select:
Create > PackageManagerTools > Blacklist
- Create a new entry by clicking on the '+' icon of the list.
- Add the unique identifier of a package (example: com.gentlymad.odinserializer) to exclude when dependencies should be resolved.
~ Use at your own risk. ~