You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gha/unity/README.md
+35-27Lines changed: 35 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -3,24 +3,23 @@
3
3
## Inputs
4
4
-`version`: **[Required]** Unity Major Version Number. Currently supported values: [2019, 2020].
5
5
6
-
-`platforms`: Platforms that you'd like to support, if not provided, some platforms may encounter errors. Values: [Android,iOS,tvOS,Windows,macOS,Linux].
6
+
-`platforms`: Platforms that you'd like to support, if not provided, build apps on certain platforms may encounter errors. Values: [Android,iOS,tvOS,Windows,macOS,Linux].
7
7
8
-
-`username`: Required when Activate Unity license. Refer to the Usage section below.
8
+
-`username`: Required when Activate Unity license. See the [Usage](https://github.com/firebase/firebase-unity-sdk/tree/main/gha/unity#usage) section below.
9
9
10
-
-`password`: Required when Activate Unity license. Refer to the Usage section below.
10
+
-`password`: Required when Activate Unity license. See the Usage section below.
11
11
12
-
-`serial_ids`: Required when Activate Unity license. Refer to the Usage section below.
12
+
-`serial_ids`: Required when Activate Unity license. See the Usage section below.
13
13
14
-
-`release_license`: If a license has been activated in the pervious step, then **must** add anothe step and set**"ture"** to `release_license` input.
14
+
-`release_license`: If a license has been activated in the pervious step, then **must** add another step to release the license. Set**"ture"** to `release_license` input.
15
15
16
16
## Output
17
17
18
-
This GitHub Action will provide `UNITY_VERSION` (full unity version) and `UNITY_ROOT_DIR` (Unity project directory) environment variable
18
+
This GitHub Action will provide `UNITY_VERSION` (full unity version, e.g. `2020.3.34f1`) and `UNITY_ROOT_DIR` (Unity project directory, e.g. `/Applications/Unity/Hub/Editor/2020.3.34f1`) environment variables as outputs.
@@ -53,7 +51,7 @@ This GitHub Action will provide `UNITY_VERSION` (full unity version) and `UNITY_
53
51
54
52
steps:
55
53
# ...
56
-
- id: unity_setup
54
+
- id: unity_setup_and_activate
57
55
uses: firebase/firebase-unity-sdk/gha/unity@main
58
56
with:
59
57
version: ${{ unity_version }}
@@ -69,29 +67,45 @@ This GitHub Action will provide `UNITY_VERSION` (full unity version) and `UNITY_
69
67
release_license: "true"
70
68
```
71
69
72
-
## [Deprecated] How to upgrade supported unity versions
70
+
## How to upgrade supported unity versions
73
71
**Background**
74
72
75
-
This GitHub Action leverages [U3D](github.com/DragonBox/u3d), which is a command line tool for working with Unity from the command line on all three operating systems.
73
+
This GitHub Action leverages [Unity Hub](https://unity3d.com/get-unity/download), which is a standalone application that streamlines the way you navigate, download, and manage your Unity projects and installations. Unity Hub is with beta version CLI support, and we are using it for Unity versions management.
76
74
77
-
In this GitHub Action, supported Unity Versions are maintained by `UNITY_SETTINGS` in `gha/unity/unity_installer.py`.
75
+
In this GitHub Action, supported Unity Versions are maintained by `SETTINGS` in `gha/unity/unity_installer.py`.
78
76
79
77
**Add a new Unity version support**
80
78
81
-
1. Install [U3D](github.com/DragonBox/u3d).
79
+
1. Select your version from [Unity LTS versions list](https://unity3d.com/unity/qa/lts-releases) and make sure this version can be installed with Unity Hub.
82
80
83
81
2. Generate new JSON string and added it to `UNITY_SETTINGS`:
84
-
- `Major_version_number`: unity major version number: 2020, 2021, etc.
85
-
- `Full_version_number`: unity full version number. e.g. 2020.3.34f1 for major version 2020. Run `u3d available` and select [Unity LTS versions](https://unity3d.com/unity/qa/lts-releases).
86
-
- `Platform`: Values of [Android,iOS,tvOS,Windows,macOS,Linux]
87
-
- `Package`:[Unity Hub must **not** been installed] Unity Packages that required for certain platform. e.g. ["Windows-mono"] pakcages for "Windows" platform. To list avaliable packages, run `u3d available -u $unity_version -p`.
82
+
- `Major_version_number`: unity major version number: `2020`, `2021`, etc.
83
+
- `Full_version_number`: unity full version number. e.g. `2020.3.34f1` for major version `2020`.
84
+
- `Changeset`: changeset locates at the bottom of this page https://unity3d.com/unity/whats-new/{unity_version}. Note: the version is neither `Major_version_number` nor `Full_version_number`. e.g. https://unity3d.com/unity/whats-new/2020.3.34
85
+
- `Platform`: Firebase Unity SDK supported platforms. Values of [Android,iOS,tvOS,Windows,macOS,Linux]
86
+
- `Modules`:[Unity Hub must been installed] Unity modules that required for certain platform. e.g. ["windows-mono"] module for "Windows" platform. To list avaliable modules, run `"/Applications/Unity Hub.app/Contents/MacOS/Unity Hub" -- --headless help` on your mac machine.
@@ -100,10 +114,4 @@ In this GitHub Action, supported Unity Versions are maintained by `UNITY_SETTING
100
114
101
115
**Common failures & solutions**
102
116
103
-
1. If you met problem with `u3d` cmd (e.g. `u3d available -u $unity_version -p`), please install older version of `u3d` and disable the `u3d` version check. Then try it again.
104
-
```
105
-
gem install u3d -v 1.2.3
106
-
export U3D_SKIP_UPDATE_CHECK=1
107
-
```
108
-
109
-
2. If you have problem with Android build. Make sure you are using the right version of NDK and JDK. Testapp building process is using a patch function `patch_android_env` in `build_testapp.py`. (Please refer [Unity Documentation](https://docs.unity3d.com/Manual/android-sdksetup.html) for Android environment setup).
117
+
1. If you have problem with Android build. Make sure you are using the right version of NDK and JDK. Testapp building process is using a patch function `patch_android_env` in `build_testapp.py`. (Please refer [Unity Documentation](https://docs.unity3d.com/Manual/android-sdksetup.html) for Android environment setup).
0 commit comments