Skip to content

Commit

Permalink
Improvement: use x86_64 Unity for both Apple Silicon and Intel proces…
Browse files Browse the repository at this point in the history
…sors (#2090)

* Improvement: use x86_64 Unity for both Apple Silicon and Intel processors

* Apply suggestions from code review

Co-authored-by: Mikhail Tokarev <[email protected]>

* The section is applicable for Mac machines only

* Add a note about pre-installed Unity

* Apply suggestions from code review

Co-authored-by: Mikhail Tokarev <[email protected]>

* Update Unity Hub heading

---------

Co-authored-by: Mikhail Tokarev <[email protected]>
  • Loading branch information
artemii-yanushevskyi and mikhail-tokarev authored Oct 6, 2023
1 parent f924dc4 commit 1b19dea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions content/knowledge-others/install-unity-version.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ aliases:
- /knowledge-base/install-unity-version
---

Each build machine image has a specific version of Unity installed. You can find out the specific Unity version by consulting the build machine specification for [macOS](../specs/versions-macos) and for [Windows](../specs/versions-windows) instances.

## Use Codemagic's supported versions
## Quick install (macOS only)

If you need to use a different Unity version, then you can specify this version in your `codemagic.yaml` file like this:
If you need to install Unity, you would need to specify the preferred version in your `codemagic.yaml` file like this:
{{< highlight yaml "style=paraiso-dark">}}
workflows:
unity-workflow:
Expand All @@ -22,7 +21,7 @@ workflows:
This will automatically install the specified Unity version to the build machine and set the `UNITY_HOME` to `/Applications/Unity/Hub/Editor/<YOUR-DESIRED-UNITY-VERSION>/Unity.app` and you can continue building your app as described [here](../yaml-quick-start/building-a-unity-app/).


#### The supported Unity versions on Mac Pro (Intel) machines are the following:
**The available Unity versions are the following:**
{{< tabpane >}}
{{% tab header="2022.X" %}}
- `2022.2.16f1`
Expand Down Expand Up @@ -56,10 +55,11 @@ If you can't find your desired Unity version in the list, please contact us [her
{{<notebox>}}
**Notes:**
- These versions are the `Unity Editor (macOS x86_64)`, and have only the `macOS`, `Android`, and `iOS` modules.
- Mac machines with Apple silicon support Unity built for `x86_46` architecture.
- If your app requires additional modules then you need to install it using [Unity Hub CLI](./-others/install-unity-version/#unity-installation-script) like this: `/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version <UNITY_VERSION> -m windows-mono`, this will install the windows modules for the specified` <UNITY_VERSION>`.
{{</notebox>}}

## Download from Unity Hub CLI
## Download and install from Unity Hub
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.

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.
Expand Down

0 comments on commit 1b19dea

Please sign in to comment.