This utility package helps with determining a Unity 3D project's used Unity editor version. It's a helper package to Unity Tools for Azure DevOps.
Use the static function ProjectVersionService.determineProjectVersionFromFile
and pass the full path to the root directory containing
your Unity project. That is the directory containing the Assets
folder. As a result, you'll get e.g.:
{
version: '2019.4.17f1',
revision: '123456abcd',
isAlpha: false,
isBeta: false
}
main
: The main branch is build and deployed to the public npm registrydevelopment
: This branch contains latest in development features, fixes and changes and is merged tomain
once stable
Found and fixed a bug or improvement on something? Contributions are welcome! Please target your pull request
against the development
branch.