Skip to content

Commit 79f19b2

Browse files
authored
Add flags for prompt during download and install from Unity Hub macOS (#2898)
1 parent a9a74f0 commit 79f19b2

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

content/knowledge-others/install-unity-version.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,22 @@ After activating the Unity license as usual, add the following script to install
128128
scripts:
129129
- name: Install Unity version
130130
script: |
131-
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version $UNITY_VERSION --changeset $UNITY_VERSION_CHANGESET -a arm64 # -a x86_64
132-
/Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version $UNITY_VERSION -m ios android -a arm64 # -a x86_64
131+
132+
# To install Unity and its required modules, such as Android-Open-JDK
133+
yes Y | /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version $UNITY_VERSION --changeset $UNITY_VERSION_CHANGESET -a arm64 # -a x86_64
134+
yes Y | /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version $UNITY_VERSION -m ios android -a arm64 # -a x86_64
135+
136+
# If you do not need Android-Open-JDK or specific modules
137+
# yes n | /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install --version $UNITY_VERSION --changeset $UNITY_VERSION_CHANGESET -a arm64 # -a x86_64
138+
# yes n | /Applications/Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless install-modules --version $UNITY_VERSION -m ios android -a arm64 # -a x86_64
139+
133140
{{< /highlight >}}
141+
142+
{{<notebox>}}
143+
**Note:** `yes Y` automatically accepts all prompts while `yes n` skips prompts, ensuring no additional downloads or installations.
144+
145+
{{</notebox>}}
146+
134147
{{< /tab >}}
135148
{{% tab header="Windows" %}}
136149
{{< highlight yaml "style=paraiso-dark">}}

0 commit comments

Comments
 (0)