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
* Unity 2022.1 has problems building for URP with WebGL1 (also on desktop), error:
132
149
```
133
150
Texture creation failed. 'ShadowAuto' is not supported for Render usage on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.
134
-
135
151
NullReferenceException: Object reference not set to an instance of an object.
136
152
```
137
153
138
154
### Min Size builds
155
+
139
156
* Built with `Tools/Build WebGL/minsize`
140
157
* Built with Code Optimization: `Size`
141
158
* Enable Exceptions: `None`
@@ -150,14 +167,17 @@ The script `WebGlBridge` adds an easy to access gameobject that can be called fr
150
167
Currently the following commands are available:
151
168
152
169
### CommonCommands
170
+
153
171
```javascript
154
172
runUnityCommand("AllocateByteArrayMemory", int mb); -> Allocate memory to test memory usage and limits
155
173
runUnityCommand("CheckOnlineStatus"); -> Check if browser is online
156
174
runUnityCommand("CopyToClipboard", "string text"); -> Copy text to clipboard
runUnityCommand("PauseSpawning"); -> Pause spawning of cubes
183
204
runUnityCommand("RemoveSpawner"); -> Remove a spawner
184
205
runUnityCommand("ResumeSpawning"); -> Resume spawning of cubes
185
-
```
206
+
```
186
207
187
208
### WebBridge
209
+
188
210
```javascript
189
211
runUnityCommand("Help"); -> Log all available commands
190
-
```
212
+
```
191
213
192
214
193
215
## Github Build Actions
194
216
195
217
This repository supports continuous Integration through [game.ci](https://game.ci/). There are scripts for creating a unity license, building the project and upgrading the project.
196
218
197
219
### Automatic builds
198
-
The main github actions workflow is [release.yml](./.github/workflows/release.yml). On Unity side a custom build script on the basis of [game.ci's BuildScript](https://github.com/game-ci/documentation/blob/main/example/BuildScript.cs) is used: [BuildScript.cs](./Assets/Scripts/Editor/BuildScript.cs). This script supports defining different build logic through git tags through the following syntax: `UNITY_VERSION`-`TAG1`-`TAG2`... Example: `2022.2.0f1-urp-webgl2`
220
+
221
+
The main github actions workflow is [release.yml](./.github/workflows/release.yml). On Unity side a custom build script on the basis of [game.ci's BuildScript](https://github.com/game-ci/documentation/blob/main/example/BuildScript.cs) is used: [BuildScript.cs](./Assets/Scripts/Editor/BuildScript.cs). This script supports defining different build logic through git tags through the following syntax: `UNITY_VERSION`-`TAG1`-`TAG2`... Example: `6000.0.0f1-urp-webgl2`
199
222
200
223
The following tags are supported:
201
224
202
225
*`minsize`: Set Code optimization to size and and don't support exceptions
203
226
*`debug`: Build a development build with embedded debug symbols and full stack trace
0 commit comments