Skip to content

Commit 1193f63

Browse files
committed
Update readme with data from 1.4.0
1 parent 5780fed commit 1193f63

File tree

1 file changed

+56
-32
lines changed

1 file changed

+56
-32
lines changed

README.md

+56-32
Original file line numberDiff line numberDiff line change
@@ -31,44 +31,64 @@
3131
## Live Demos ([All Builds](https://deml.io/experiments/unity-webgl/))
3232

3333
### Built-in Renderpipeline WebGL2
34+
35+
Version | Size | Link
36+
--- | --- | ---
37+
6000.0.34f1 | 3.38 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-webgl2
38+
2023.2.20f1 | 3.27 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-webgl2
39+
2023.1.20f1 | 3.19 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-webgl2
40+
2022.3.56f1 | 3.17 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-webgl2
41+
2021.3.45f1 | 2.83 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl2
42+
2020.3.48f1 | 3.01 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl2
43+
44+
### Built-in Renderpipeline WebGL1
45+
3446
Version | Size | Link
3547
--- | --- | ---
36-
6000.0.25f1 | 3.32 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-webgl2
37-
2023.2.20f1 | 3.23 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-webgl2
38-
2023.1.20f1 | 3.14 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-webgl2
39-
2022.3.50f1 | 3.12 MB | https://deml.io/experiments/unity-webgl/2022.3.50f1-webgl2
40-
2021.3.45f1 | 2.78 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl2
41-
2020.3.48f1 | 2.96 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl2
48+
2022.3.56f1 | 3.16 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-webgl1
49+
2021.3.45f1 | 2.81 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl1
50+
2020.3.48f1 | 2.99 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl1
4251

4352
### Built-in Renderpipeline Minimum size
53+
4454
Version | Size | Link
4555
--- | --- | ---
46-
6000.0.25f1 | 2.92 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-minsize-webgl2
47-
2023.2.20f1 | 2.85 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-minsize-webgl2
48-
2023.1.20f1 | 2.72 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-minsize-webgl2
49-
2022.3.50f1 | 2.69 MB | https://deml.io/experiments/unity-webgl/2022.3.50f1-minsize-webgl1
50-
2021.3.45f1 | 2.74 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-minsize-webgl1
51-
2020.3.48f1 | 2.48 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-minsize-webgl1
56+
6000.0.34f1 | 2.97 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-minsize-webgl2
57+
2023.2.20f1 | 2.88 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-minsize-webgl2
58+
2023.1.20f1 | 2.76 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-minsize-webgl2
59+
2022.3.56f1 | 2.73 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-minsize-webgl1
60+
2021.3.45f1 | 2.79 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-minsize-webgl1
61+
2020.3.48f1 | 2.54 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-minsize-webgl1
5262

5363
### URP WebGL2
64+
65+
Version | Size | Link
66+
--- | --- | ---
67+
6000.0.34f1 | 7.94 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-urp-webgl2
68+
2023.2.20f1 | 6.88 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-webgl2
69+
2023.1.20f1 | 6.26 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-webgl2
70+
2022.3.56f1 | 5.97 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-urp-webgl2
71+
2021.3.45f1 | 6.36 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl2
72+
2020.3.48f1 | 5.65 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl2
73+
74+
### URP WebGL1
75+
5476
Version | Size | Link
5577
--- | --- | ---
56-
6000.0.25f1 | 7.82 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-urp-webgl2
57-
2023.2.20f1 | 6.87 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-webgl2
58-
2023.1.20f1 | 6.25 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-webgl2
59-
2022.3.50f1 | 5.92 MB | https://deml.io/experiments/unity-webgl/2022.3.50f1-urp-webgl2
60-
2021.3.45f1 | 6.31 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl2
61-
2020.3.48f1 | 5.60 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl2
78+
2022.3.56f1 | 5.94 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-urp-webgl1
79+
2021.3.45f1 | 6.17 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl1
80+
2020.3.48f1 | 5.49 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl1
6281

6382
### URP Minimum Size
83+
6484
Version | Size | Link
6585
--- | --- | ---
66-
6000.0.25f1 | 6.05 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-urp-minsize-webgl2
67-
2023.2.20f1 | 5.30 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-minsize-webgl2
68-
2023.1.20f1 | 5.71 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-minsize-webgl2
69-
2022.3.50f1 | 4.65 MB | https://deml.io/experiments/unity-webgl/2022.3.50f1-urp-minsize-webgl1
70-
2021.3.45f1 | 6.11 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-minsize-webgl1
71-
2020.3.48f1 | 4.86 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-minsize-webgl1
86+
6000.0.34f1 | 6.10 MB | https://deml.io/experiments/unity-webgl/6000.0.34f1-urp-minsize-webgl2
87+
2023.2.20f1 | 5.33 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-minsize-webgl2
88+
2023.1.20f1 | 4.88 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-minsize-webgl2
89+
2022.3.56f1 | 4.69 MB | https://deml.io/experiments/unity-webgl/2022.3.56f1-urp-minsize-webgl1
90+
2021.3.45f1 | 6.16 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-minsize-webgl1
91+
2020.3.48f1 | 4.91 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-minsize-webgl1
7292

7393

7494

@@ -119,10 +139,7 @@ Version | Size | Link
119139
Compiling Vertex program with DISABLE_TEXTURE2D_X_ARRAY
120140
Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_LIGHTMAP_RGBM_ENCODING UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
121141
Disabled keywords: BLIT_SINGLE_SLICE SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING
122-
123-
124142
Shader error in 'Hidden/kMotion/CameraMotionVectors': SV_VertexID semantic is not supported on GLES 2.0 at line 11 (on gles)
125-
126143
Compiling Subshader: 0, Pass: , Vertex program with <no keywords>
127144
Platform defines: SHADER_API_DESKTOP UNITY_COLORSPACE_GAMMA UNITY_ENABLE_DETAIL_NORMALMAP UNITY_LIGHTMAP_RGBM_ENCODING UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BLENDING UNITY_SPECCUBE_BOX_PROJECTION UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS
128145
Disabled keywords: SHADER_API_GLES30 UNITY_ASTC_NORMALMAP_ENCODING UNITY_ENABLE_NATIVE_SHADOW_LOOKUPS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_HALF_PRECISION_FRAGMENT_SHADER_REGISTERS UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_FULL_HDR UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_DXT5nm UNITY_NO_FULL_STANDARD_SHADER UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_UNIFIED_SHADER_PRECISION_MODEL UNITY_VIRTUAL_TEXTURING
@@ -131,11 +148,11 @@ Version | Size | Link
131148
* Unity 2022.1 has problems building for URP with WebGL1 (also on desktop), error:
132149
```
133150
Texture creation failed. 'ShadowAuto' is not supported for Render usage on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.
134-
135151
NullReferenceException: Object reference not set to an instance of an object.
136152
```
137153

138154
### Min Size builds
155+
139156
* Built with `Tools/Build WebGL/minsize`
140157
* Built with Code Optimization: `Size`
141158
* Enable Exceptions: `None`
@@ -150,14 +167,17 @@ The script `WebGlBridge` adds an easy to access gameobject that can be called fr
150167
Currently the following commands are available:
151168

152169
### CommonCommands
170+
153171
```javascript
154172
runUnityCommand("AllocateByteArrayMemory", int mb); -> Allocate memory to test memory usage and limits
155173
runUnityCommand("CheckOnlineStatus"); -> Check if browser is online
156174
runUnityCommand("CopyToClipboard", "string text"); -> Copy text to clipboard
157175
runUnityCommand("DeleteAllPlayerPrefs"); -> PlayerPrefs.DeleteAll
158176
runUnityCommand("DisableCaptureAllKeyboardInput"); -> Disable unity from consuming all keyboard input
159177
runUnityCommand("EnableCaptureAllKeyboardInput"); -> Enable unity from consuming all keyboard input
178+
runUnityCommand("FindGameObjectByName", "string name"); -> Find GameObject by name and log its components
160179
runUnityCommand("LogExampleMessages"); -> Log example messages for Log, warning and error
180+
runUnityCommand("LogInitializationTime"); -> Log initialization time information
161181
runUnityCommand("LogMemory"); -> Logs the current memory
162182
runUnityCommand("LogMessage", "string message"); -> Log a custom message
163183
runUnityCommand("LogShaderCompilation", int enabled); -> GraphicsSettings.logWhenShaderIsCompiled
@@ -174,35 +194,39 @@ runUnityCommand("ThrowDictionaryException"); -> Throw a dictionary key not found
174194
runUnityCommand("ToggleInfoPanel"); -> Toggle develop ui visibility of InfoPanel
175195
runUnityCommand("TriggerGarbageCollection"); -> Trigger garbage collection
176196
runUnityCommand("UnloadUnusedAssets"); -> Resources.UnloadUnusedAssets
177-
```
197+
```
178198

179199
### ObjectSpawnerCommands
200+
180201
```javascript
181202
runUnityCommand("AddSpawner"); -> Add a spawner
182203
runUnityCommand("PauseSpawning"); -> Pause spawning of cubes
183204
runUnityCommand("RemoveSpawner"); -> Remove a spawner
184205
runUnityCommand("ResumeSpawning"); -> Resume spawning of cubes
185-
```
206+
```
186207

187208
### WebBridge
209+
188210
```javascript
189211
runUnityCommand("Help"); -> Log all available commands
190-
```
212+
```
191213

192214

193215
## Github Build Actions
194216

195217
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.
196218

197219
### 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`
199222

200223
The following tags are supported:
201224

202225
* `minsize`: Set Code optimization to size and and don't support exceptions
203226
* `debug`: Build a development build with embedded debug symbols and full stack trace
204227
* `webgl1`: Build for WebGL1
205228
* `webgl2`: Build for WebGL2
229+
* `webgpu`: Build for WebGPU
206230

207231
### Upgrade Unity CI
208232

0 commit comments

Comments
 (0)