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
A GitHub Action to create a new Unity Project using a predefined template package.
4
+
5
+
## How to use
6
+
7
+
### Requirements
8
+
9
+
> [!IMPORTANT]
10
+
> This action requires that the Unity Editor is installed on the runner.
11
+
>
12
+
> You can use [`unity-setup`](https://github.com/buildalon/unity-setup) action to install Unity Editor before using this action.
13
+
14
+
-`UNITY_EDITOR_PATH` environment variable must be set to the path of the Unity Editor executable.
15
+
16
+
> [!IMPORTANT]
17
+
> This action requires an active Unity license be available on the runner.
18
+
>
19
+
> You can use [`activate-unity-license`](https://github.com/buildalon/activate-unity-license) action to activate the Unity license before using this action.
20
+
21
+
- A license activation for the Unity Editor must also be completed before using this action.
| `project-name` | The name of the Unity project to create. | true |
39
+
| `project-directory` | The directory where the Unity project will be created. | Defaults to the root of the workspace. |
40
+
| `template-name` | The name of the template package to use for creating the Unity project. | Default: `com.unity.template.3d(-cross-platform)?`|
41
+
42
+
> [!NOTE]
43
+
> `template-name` supports regex patterns, allowing you to match multiple template packages. For example, `com.unity.template.3d(-cross-platform)?` will match both `com.unity.template.3d` and `com.unity.template.3d-cross-platform`.
44
+
45
+
### outputs
46
+
47
+
- `project-path`: The path to the created Unity project. This is the absolute path to the project directory.
0 commit comments