question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use ProjectSettings/ProjectVersion.txt

See original GitHub issue

Context

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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
webbertakkencommented, Oct 19, 2020

I was thinking the same thing. Perhaps just “auto” and set it as default when not defined.

1reaction
webbertakkencommented, Oct 19, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found