Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Allowing override of Project Version with a text file #57

Merged
merged 1 commit into from
Apr 6, 2018

Conversation

KyleOrth
Copy link
Contributor

@KyleOrth KyleOrth commented Apr 4, 2018

This commit adds support for overriding the Unity Version that will be used for a project by reading from a file called "ProjectVersionOverride.txt" in the root directory of a project.

My use case for this feature is having multiple copies of the same project which has the Assets folder and ProjectSettings folder sym-linked to a shared directory. When pulling from Git, it will update the Assets and ProjectSettings automatically for multiple Unity Project folders.

I do it this way because I need to have a separate version of Unity being used for different platforms - e.g. Console builds require a specific version / patch version of Unity, but the PC version needs a separate version. By reading from the file in ProjectSettings, it will be copied across to all my shared projects via the symlinks. However, having this special override file outside of the ProjectSettings directory (in the root of the project) will allow me to use the UnityLauncher and keep track of the exact version needed for each platform of a project even if the data in ProjectSettings is different from this.

If there is no file named "ProjectVersionOverride.txt" in the root of the project, then it will check the Unity project version as normal without using this extra check.

@unitycoder
Copy link
Owner

thanks looks good, ill merge it soon!

@unitycoder unitycoder merged commit a392d06 into unitycoder:master Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants