cd UnityPath
cat ./ProjectSettings/ProjectVersion.txt | grep "m_EditorVersion:" | cut -d ' ' -f 2
# 2021.3.17f1
Last active
November 27, 2023 11:36
-
-
Save guitarrapc/3a7d21b73e789609db86c6b856870871 to your computer and use it in GitHub Desktop.
Extract UnityVersion from ProjectVErsion.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eo pipefail | |
cat ./ProjectSettings/ProjectVersion.txt | grep "m_EditorVersion:" | cut -d ' ' -f 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m_EditorVersion: 2021.3.17f1 | |
m_EditorVersionWithRevision: 2021.3.17f1 (3e8111cac19d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment