Write a Version.txt when the project succeeded in build.
- Import dependencies first.
- Paste this code into
PackageManager > Add package from git URL
.
https://github.com/XJINE/Unity_VersionFileBuilder.git?path=/Packages/VersionFileBuilder
You have to import following assets to use this asset.
- Set the version number in
ProjectSettings > Player > Version
. - Write Version.txt when the project succeeded in build.
- Alert and stop building when the existing version is newer than current.