2
2
3
3
![ Preview] ( ./preview.png )
4
4
5
- [ ![ ] ( https://img.shields.io/github/release-date/JohannesDeml/UnityWebGL-LoadingTest.svg )] ( https://github.com/JohannesDeml/UnityWebGL-LoadingTest/releases ) [ ![ Tested up to Unity 2022.3 ] ( https://img.shields.io/badge/tested%20up%20to%20unity-2022.3 -green.svg?logo=unity&cacheSeconds=2592000 )] ( https://unity3d.com/get-unity/download/archive )
5
+ [ ![ ] ( https://img.shields.io/github/release-date/JohannesDeml/UnityWebGL-LoadingTest.svg )] ( https://github.com/JohannesDeml/UnityWebGL-LoadingTest/releases ) [ ![ Tested up to Unity 2023.1 ] ( https://img.shields.io/badge/tested%20up%20to%20unity-2023.1 -green.svg?logo=unity&cacheSeconds=2592000 )] ( https://unity3d.com/get-unity/download/archive )
6
6
7
- * Testing Unity's WebGL size and loading time for different versions (2018.4 - 2022.3 ) and platforms*
7
+ * Testing Unity's WebGL size and loading time for different versions (2018.4 - 2023.1 ) and platforms*
8
8
9
9
* [ Unity Forum Thread] ( https://forum.unity.com/threads/webgl-builds-for-mobile.545877/ )
10
10
* [ Overview page of all builds] ( https://deml.io/experiments/unity-webgl/ )
20
20
![ Debug Console Screenshot with description of features] ( ./Documentation/DebugConsole.png )
21
21
* Unity Rich text styling support for browser console & debug console
22
22
![ Screenshot of styled unity log message in browser console] ( ./Documentation/UnityRichTextSupport.png )
23
- * Easy access to unity functions through the browser console ([ Demo ] ( https://deml.io/experiments/unity-webgl/2020.3.23f1/ ) | [ Youtube] ( https://youtu.be/OjypxsD6XMI ) )
23
+ * Easy access to unity functions through the browser console ([ Youtube] ( https://youtu.be/OjypxsD6XMI ) )
24
24
* Handy debug functions for times and memory consumption
25
25
* Responsive template layout for maximum mobile compatibility
26
26
* Github Actions to automatically build the project and deploy it on the server via [ Game CI] ( https://game.ci/ )
29
29
30
30
## Live Demos
31
31
32
+
32
33
### Built-in Renderpipeline WebGL2
33
34
Version | Size | Link
34
35
--- | --- | ---
35
- 2022.2.12f1 | 3.04 MB | https://deml.io/experiments/unity-webgl/2022.2.12f1-webgl2
36
- 2022.1.24f1 | 2.80 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-webgl2
37
- 2021.3.21f1 | 2.75 MB | https://deml.io/experiments/unity-webgl/2021.3.21f1-webgl2
36
+ 2023.1.20f1 | 3.09 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-webgl2
37
+ 2022.3.15f1 | 3.06 MB | https://deml.io/experiments/unity-webgl/2022.3.15f1-webgl2
38
+ 2022.2.18f1 | 3.05 MB | https://deml.io/experiments/unity-webgl/2022.2.18f1-webgl2
39
+ 2022.1.24f1 | 2.81 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-webgl2
40
+ 2021.3.33f1 | 2.76 MB | https://deml.io/experiments/unity-webgl/2021.3.33f1-webgl2
38
41
2021.2.19f1 | 2.74 MB | https://deml.io/experiments/unity-webgl/2021.2.19f1-webgl2
39
42
2021.1.28f1 | 2.94 MB | https://deml.io/experiments/unity-webgl/2021.1.28f1-webgl2
40
- 2020.3.46f1 | 2.94 MB | https://deml.io/experiments/unity-webgl/2020.3.46f1 -webgl2
43
+ 2020.3.48f1 | 2.95 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1 -webgl2
41
44
2019.4.40f1 | 3.05 MB | https://deml.io/experiments/unity-webgl/2019.4.40f1-webgl2
42
45
2018.4.36f1 | 2.84 MB | https://deml.io/experiments/unity-webgl/2018.4.36f1-webgl2
43
46
44
47
### Built-in Renderpipeline WebGL1
45
48
Version | Size | Link
46
49
--- | --- | ---
47
- 2022.2.12f1 | 3.02 MB | https://deml.io/experiments/unity-webgl/2022.2.12f1 -webgl1
48
- 2022.1.24f1 | 2.78 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-webgl1
49
- 2021.3.21f1 | 2.73 MB | https://deml.io/experiments/unity-webgl/2021.3.21f1 -webgl1
50
+ 2022.2.18f1 | 3.03 MB | https://deml.io/experiments/unity-webgl/2022.2.18f1 -webgl1
51
+ 2022.1.24f1 | 2.79 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-webgl1
52
+ 2021.3.33f1 | 2.74 MB | https://deml.io/experiments/unity-webgl/2021.3.33f1 -webgl1
50
53
2021.2.19f1 | 2.72 MB | https://deml.io/experiments/unity-webgl/2021.2.19f1-webgl1
51
54
2021.1.28f1 | 2.92 MB | https://deml.io/experiments/unity-webgl/2021.1.28f1-webgl1
52
- 2020.3.46f1 | 2.92 MB | https://deml.io/experiments/unity-webgl/2020.3.46f1 -webgl1
55
+ 2020.3.48f1 | 2.93 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1 -webgl1
53
56
2019.4.40f1 | 3.01 MB | https://deml.io/experiments/unity-webgl/2019.4.40f1-webgl1
54
57
2018.4.36f1 | 2.82 MB | https://deml.io/experiments/unity-webgl/2018.4.36f1-webgl1
55
58
56
59
### Built-in Renderpipeline WebGL1 Minimum size
57
60
Version | Size | Link
58
61
--- | --- | ---
59
- 2022.2.12f1 | 2.67 MB | https://deml.io/experiments/unity-webgl/2022.2.12f1-minsize-webgl1
62
+ 2023.1.20f1 | 2.85 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-minsize-webgl2
63
+ 2022.2.18f1 | 2.68 MB | https://deml.io/experiments/unity-webgl/2022.2.18f1-minsize-webgl1
60
64
2022.1.24f1 | 2.63 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-minsize-webgl1
61
- 2021.3.21f1 | 2.57 MB | https://deml.io/experiments/unity-webgl/2021.3.21f1 -minsize-webgl1
65
+ 2021.3.33f1 | 2.61 MB | https://deml.io/experiments/unity-webgl/2021.3.33f1 -minsize-webgl1
62
66
2021.2.19f1 | 2.56 MB | https://deml.io/experiments/unity-webgl/2021.2.19f1-minsize-webgl1
63
67
2021.1.28f1 | 2.47 MB | https://deml.io/experiments/unity-webgl/2021.1.28f1-minsize-webgl1
64
- 2020.3.46f1 | 2.47 MB | https://deml.io/experiments/unity-webgl/2020.3.46f1 -minsize-webgl1
68
+ 2020.3.48f1 | 2.48 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1 -minsize-webgl1
65
69
2019.4.40f1 | 2.96 MB | https://deml.io/experiments/unity-webgl/2019.4.40f1-minsize-webgl1
66
70
2018.4.36f1 | 2.77 MB | https://deml.io/experiments/unity-webgl/2018.4.36f1-minsize-webgl1
67
71
68
72
### URP WebGL2
69
73
Version | Size | Link
70
74
--- | --- | ---
71
- 2022.2.12f1 | 7.16 MB | https://deml.io/experiments/unity-webgl/2022.2.12f1-urp-webgl2
72
- 2022.1.24f1 | 6.44 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-urp-webgl2
73
- 2021.3.21f1 | 6.24 MB | https://deml.io/experiments/unity-webgl/2021.3.21f1-urp-webgl2
75
+ 2023.1.20f1 | 6.05 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-webgl2
76
+ 2022.3.15f1 | 5.70 MB | https://deml.io/experiments/unity-webgl/2022.3.15f1-urp-webgl2
77
+ 2022.2.18f1 | 7.21 MB | https://deml.io/experiments/unity-webgl/2022.2.18f1-urp-webgl2
78
+ 2022.1.24f1 | 6.45 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-urp-webgl2
79
+ 2021.3.33f1 | 6.30 MB | https://deml.io/experiments/unity-webgl/2021.3.33f1-urp-webgl2
74
80
2021.2.19f1 | 6.17 MB | https://deml.io/experiments/unity-webgl/2021.2.19f1-urp-webgl2
75
81
2021.1.28f1 | 5.81 MB | https://deml.io/experiments/unity-webgl/2021.1.28f1-urp-webgl2
76
- 2020.3.46f1 | 5.59 MB | https://deml.io/experiments/unity-webgl/2020.3.46f1 -urp-webgl2
82
+ 2020.3.48f1 | 5.59 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1 -urp-webgl2
77
83
2019.4.40f1 | 5.56 MB | https://deml.io/experiments/unity-webgl/2019.4.40f1-urp-webgl2
78
84
2018.4.36f1 | 2.81 MB | https://deml.io/experiments/unity-webgl/2018.4.36f1-urp-webgl2
79
85
80
86
### URP WebGL1
81
87
Version | Size | Link
82
88
--- | --- | ---
83
- 2022.2.12f1 | 7.02 MB | https://deml.io/experiments/unity-webgl/2022.2.12f1-urp-webgl1
89
+ 2022.3.15f1 | 5.67 MB | https://deml.io/experiments/unity-webgl/2022.3.15f1-urp-webgl1
90
+ 2022.2.18f1 | 7.08 MB | https://deml.io/experiments/unity-webgl/2022.2.18f1-urp-webgl1
84
91
2022.1.24f1 | 6.30 MB | https://deml.io/experiments/unity-webgl/2022.1.24f1-urp-webgl1
85
- 2021.3.21f1 | 6.07 MB | https://deml.io/experiments/unity-webgl/2021.3.21f1 -urp-webgl1
92
+ 2021.3.33f1 | 6.12 MB | https://deml.io/experiments/unity-webgl/2021.3.33f1 -urp-webgl1
86
93
2021.2.19f1 | 5.99 MB | https://deml.io/experiments/unity-webgl/2021.2.19f1-urp-webgl1
87
94
2021.1.28f1 | 5.57 MB | https://deml.io/experiments/unity-webgl/2021.1.28f1-urp-webgl1
88
- 2020.3.46f1 | 5.42 MB | https://deml.io/experiments/unity-webgl/2020.3.46f1 -urp-webgl1
95
+ 2020.3.48f1 | 5.43 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1 -urp-webgl1
89
96
2019.4.40f1 | 5.51 MB | https://deml.io/experiments/unity-webgl/2019.4.40f1-urp-webgl1
90
97
2018.4.36f1 | 2.80 MB | https://deml.io/experiments/unity-webgl/2018.4.36f1-urp-webgl1
91
98
@@ -129,15 +136,15 @@ Version | Size | Link
129
136
* In general the performance for URP seems to be better compared to builtin, but it has a larger build size.
130
137
* With Unity 2021.2 there is currently a problem with shader compilation and therefore builds fail:
131
138
```
132
- Shader error in 'Hidden/Universal/CoreBlit': invalid subscript 'positionCS' at
139
+ Shader error in 'Hidden/Universal/CoreBlit': invalid subscript 'positionCS' at
133
140
UnityWebGL-LoadingTest/Library/PackageCache/[email protected] /Runtime/Utilities/Blit.hlsl(92) (on gles)
134
141
Compiling Vertex program with DISABLE_TEXTURE2D_X_ARRAY
135
142
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
136
143
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
137
-
138
-
144
+
145
+
139
146
Shader error in 'Hidden/kMotion/CameraMotionVectors': SV_VertexID semantic is not supported on GLES 2.0 at line 11 (on gles)
140
-
147
+
141
148
Compiling Subshader: 0, Pass: , Vertex program with <no keywords>
142
149
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
143
150
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
@@ -146,15 +153,15 @@ Version | Size | Link
146
153
* Unity 2022.1 has problems building for URP with WebGL1 (also on desktop), error:
147
154
```
148
155
Texture creation failed. 'ShadowAuto' is not supported for Render usage on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.
149
-
156
+
150
157
NullReferenceException: Object reference not set to an instance of an object.
151
158
```
152
159
153
160
### Min Size builds
154
161
* Built with ` Tools/Build WebGL/minsize `
155
162
* Built with Code Optimization: ` Size `
156
163
* Enable Exceptions: ` None `
157
- * C++ Compiler Configuration: ` Master `
164
+ * C++ Compiler Configuration: ` Master `
158
165
159
166
## Browser Console commands
160
167
0 commit comments