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
- Install Unity, Activate and Release Unity License
46
+
- Install Unity, Activate and Release Unity License. Always release the license after usage.
47
47
```yml
48
48
jobs:
49
49
build_testapp:
@@ -52,7 +52,7 @@ This GitHub Action will provide `UNITY_VERSION` (full unity version, e.g. `2020.
52
52
steps:
53
53
# ...
54
54
- id: unity_setup_and_activate
55
-
uses: firebase/firebase-unity-sdk/gha/unity@main
55
+
uses: ./gha/unity
56
56
with:
57
57
version: ${{ unity_version }}
58
58
platforms: ${{ platforms }}
@@ -61,7 +61,7 @@ This GitHub Action will provide `UNITY_VERSION` (full unity version, e.g. `2020.
61
61
serial_ids: ${{ secrets.SERIAL_ID }}
62
62
# ...
63
63
- id: release_license
64
-
uses: firebase/firebase-unity-sdk/gha/unity@main
64
+
uses: ./gha/unity
65
65
with:
66
66
version: ${{ unity_version }}
67
67
release_license: "true"
@@ -72,18 +72,21 @@ This GitHub Action will provide `UNITY_VERSION` (full unity version, e.g. `2020.
72
72
73
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.
74
74
75
-
In this GitHub Action, supported Unity Versions are maintained by `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`](https://github.com/firebase/firebase-unity-sdk/blob/unity-readme/gha/unity/unity_installer.py#L89).
76
76
77
77
**Add a new Unity version support**
78
78
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.
79
+
1. Select your version from [Unity LTS versions list](https://unity3d.com/unity/qa/lts-releases):
80
+
- Make sure this version can be installed with Unity Hub.
81
+
- Make sure this version works on you computer first.
82
+
- You may need to select different versions for different OS.
80
83
81
-
2. Generate new JSON string and added it to `UNITY_SETTINGS`:
84
+
2. Generate a JSON string which contains the following information and added it to `UNITY_SETTINGS`:
82
85
- `Major_version_number`: unity major version number: `2020`, `2021`, etc.
83
86
- `Full_version_number`: unity full version number. e.g. `2020.3.34f1` for major version `2020`.
84
87
- `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
88
- `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.
89
+
- `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 on mac machines, run `"/Applications/Unity Hub.app/Contents/MacOS/Unity Hub" -- --headless help` .
0 commit comments