

In order to install a different version, you can use the info from the ProjectSettings/ProjectVersion.txt file which has the unity version and changeset that the project uses. Getting the Unity version number and changeset id License activation and return takes place with the Unity version already installed on the machine, but building of the Xcode project or Android binary will use the version of Unity you install. It is possible to use the Unity Hub CLI to download and install a different Unity Editor version and target support files for that version. If your app requires additional modules then you need to install it using Unity Hub CLI like this: /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -headless install-modules -version -m windows-mono, this will install the windows modules for the specified.

