Use ProjectSettings/ProjectVersion.txt
See original GitHub issueContext
When using Unity Hub it manages the Unity version in ProjectSettings/ProjectVersion.txt
and automatically updates it when you change the version in Unity Hub.
I think it would be good to support this as an alternative to explicitly declaring the version in with.unityVersion
on the builder action.
Suggested solution
This should probably be opt-in. unityVersion
could accept a special value indicating to read {projectPath }/ProjectSettings/ProjectVersion.txt
for the Unity version in m_EditorVersion
.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Unable to parse file ProjectSettings/ProjectVersion.txt:
txt files. The error is still present on any new project opened, so for now, it is suggested going through the projects and...
Read more >ProjectVersion.txt - Unity-Technologies/ml-agents - GitHub
The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training ...
Read more >Merge conflict in ProjectVersion.txt causes 'Unable to parse ...
Steps to reproduce: 1. Start a new project 2. Open ProjectSettings/ProjectVersion.txt file of your newly created project
Read more >Finding the Name and Editor Version Used in Unity Projects
These can be found in the files EditorVersion.txt and ProjectSettings.Asset, respectively for modern Unity projects.
Read more >Unity Procject version is "Unavailable" - unity3d - Stack Overflow
Is there a file in ProjectSettings/ProjectVersion.txt ? ... No I didn't indeed ^^ Don't you use any version control such as Git ?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was thinking the same thing. Perhaps just “auto” and set it as default when not defined.
Note that that will only work with the newer images though. As the current ones have a different hardware ID for every version of unity.