diff --git a/UnityLauncher/Tools.cs b/UnityLauncher/Tools.cs index 9310842..0c8dec8 100644 --- a/UnityLauncher/Tools.cs +++ b/UnityLauncher/Tools.cs @@ -251,7 +251,12 @@ public static void AddContextMenuRegistry(string contextRegRoot) public static string GetProjectVersion(string path) { var version = ""; - if (Directory.Exists(Path.Combine(path, "ProjectSettings"))) + + if(File.Exists(Path.Combine(path, "ProjectVersionOverride.txt"))) + { + version = File.ReadAllText(Path.Combine(path, "ProjectVersionOverride.txt")); + } + else if (Directory.Exists(Path.Combine(path, "ProjectSettings"))) { var versionPath = Path.Combine(path, "ProjectSettings", "ProjectVersion.txt"); if (File.Exists(versionPath) == true) // 5.x and later