A simple automated version writer for Unity.
This is a simple versioning tool that automatically sets the app version based on the number of commits in git and the number of builds each time the app is built. Please use it only for versioning during development, as it does not reflect the version of the Unity app.
- Unity 2021.3.0f1 or higher
- Git
- Major.Minor.Patch
- Major - After the 100th digit of the number of commits
- Minor - Number of commits in tens and ones
- Patch - Build Count
- Open the Unity Package Manager
- Click the + button
- Select "Add package from git URL..."
- Enter
https://github.com/witalosk/AutoVersionWriter.git?path=Packages/com.witalosk.auto_version_writer
- Add
VersionViewerCanvas
prefab to your scene. - That's all!
You can get the current version of your app by VersionGetter
class.
public void Start()
{
string version = VersionGetter.Version;
DateTime buildDate = VersionGetter.BuildDate;
Debug.Log($"Version: {version} ({buildDate}:yyyy/MM/dd)");
}