@dinomite-studios/unity-project-version

A collection of utilities useful when working with Unity 3D based projects in DevOps, e.g. when creating CI/CD pipelines.

Usage no npm install needed!

<script type="module">
  import dinomiteStudiosUnityProjectVersion from 'https://cdn.skypack.dev/@dinomite-studios/unity-project-version';
</script>

README

Unity Project Version Utility

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.

npm version Build Status

How To Use

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
}

Branches

  • main: The main branch is build and deployed to the public npm registry
  • development: This branch contains latest in development features, fixes and changes and is merged to main once stable

Contributions

Found and fixed a bug or improvement on something? Contributions are welcome! Please target your pull request against the development branch.