28
28
* Tracking multiple Unity versions starting from 2018.4
29
29
* Build targets for webgl1, webgl2 and webgpu
30
30
31
- ## Live Demos
31
+ ## Live Demos ( [ All Builds ] ( https://deml.io/experiments/unity-webgl/ ) )
32
32
33
33
### Built-in Renderpipeline WebGL2
34
34
Version | Size | Link
@@ -40,13 +40,6 @@ Version | Size | Link
40
40
2021.3.45f1 | 2.78 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl2
41
41
2020.3.48f1 | 2.96 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl2
42
42
43
- ### Built-in Renderpipeline WebGL1
44
- Version | Size | Link
45
- --- | --- | ---
46
- 2022.3.50f1 | 3.10 MB | https://deml.io/experiments/unity-webgl/2022.3.50f1-webgl1
47
- 2021.3.45f1 | 2.76 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl1
48
- 2020.3.48f1 | 2.94 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl1
49
-
50
43
### Built-in Renderpipeline Minimum size
51
44
Version | Size | Link
52
45
--- | --- | ---
@@ -67,13 +60,6 @@ Version | Size | Link
67
60
2021.3.45f1 | 6.31 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl2
68
61
2020.3.48f1 | 5.60 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl2
69
62
70
- ### URP WebGL1
71
- Version | Size | Link
72
- --- | --- | ---
73
- 2022.3.50f1 | 5.90 MB | https://deml.io/experiments/unity-webgl/2022.3.50f1-urp-webgl1
74
- 2021.3.45f1 | 6.13 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl1
75
- 2020.3.48f1 | 5.44 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl1
76
-
77
63
### URP Minimum Size
78
64
Version | Size | Link
79
65
--- | --- | ---
@@ -164,17 +150,33 @@ The script `WebGlBridge` adds an easy to access gameobject that can be called fr
164
150
Currently the following commands are available:
165
151
166
152
``` javascript
167
- unityGame .SendMessage (" WebGL" , " DisableCaptureAllKeyboardInput" ); - > Disable unity from consuming all keyboard input
168
- unityGame .SendMessage (" WebGL" , " EnableCaptureAllKeyboardInput" ); - > Enable unity from consuming all keyboard input
169
- unityGame .SendMessage (" WebGL" , " LogMemory" ); - > Logs the current memory
170
- unityGame .SendMessage (" WebGL" , " SetApplicationRunInBackground" , System .Int32 runInBackground); - > Application .runInBackground
171
- unityGame .SendMessage (" WebGL" , " SetApplicationTargetFrameRate" , System .Int32 targetFrameRate); - > Application .targetFrameRate
172
- unityGame .SendMessage (" WebGL" , " SetTimeFixedDeltaTime" , System .Single fixedDeltaTime); - > Time .fixedDeltaTime
173
- unityGame .SendMessage (" WebGL" , " SetTimeTimeScale" , System .Single timeScale); - > Time .timeScale
174
- unityGame .SendMessage (" WebGL" , " ToggleInfoPanel" ); - > Toggle develop ui visibility of InfoPanel
175
- unityGame .SendMessage (" WebGL" , " LogExampleMessage" ); - > Log an example debug message
176
- unityGame .SendMessage (" WebGL" , " LogMessage" , " System.String message" ); - > Log a custom message
177
- unityGame .SendMessage (" WebGL" , " Help" ); - > Log all available commands
153
+ Available commands:
154
+ -- - CommonCommands-- -
155
+ runUnityCommand (" DisableCaptureAllKeyboardInput" ); - > Disable unity from consuming all keyboard input
156
+ runUnityCommand (" EnableCaptureAllKeyboardInput" ); - > Enable unity from consuming all keyboard input
157
+ runUnityCommand (" LogMemory" ); - > Logs the current memory
158
+ runUnityCommand (" UnloadUnusedAssets" ); - > Resources .UnloadUnusedAssets
159
+ runUnityCommand (" SetApplicationRunInBackground" , System .Int32 runInBackground); - > Application .runInBackground
160
+ runUnityCommand (" SetApplicationTargetFrameRate" , System .Int32 targetFrameRate); - > Application .targetFrameRate
161
+ runUnityCommand (" SetTimeFixedDeltaTime" , System .Single fixedDeltaTime); - > Time .fixedDeltaTime
162
+ runUnityCommand (" SetTimeTimeScale" , System .Single timeScale); - > Time .timeScale
163
+ runUnityCommand (" ToggleInfoPanel" ); - > Toggle develop ui visibility of InfoPanel
164
+ runUnityCommand (" LogUserAgent" ); - > Log User Agent and isMobileDevice
165
+ runUnityCommand (" LogExampleMessages" ); - > Log example messages for Log, warning and error
166
+ runUnityCommand (" LogMessage" , " System.String message" ); - > Log a custom message
167
+ runUnityCommand (" ThrowDictionaryException" ); - > Throw a dictionary key not found exception
168
+ runUnityCommand (" LogTextureSupport" ); - > Log supported and unsupported texture formats
169
+ runUnityCommand (" DeleteAllPlayerPrefs" ); - > PlayerPrefs .DeleteAll
170
+ runUnityCommand (" LogShaderCompilation" , System .Int32 enabled); - > GraphicsSettings .logWhenShaderIsCompiled
171
+
172
+ -- - ObjectSpawnerCommands-- -
173
+ runUnityCommand (" PauseSpawning" ); - > Pause spawning of cubes
174
+ runUnityCommand (" ResumeSpawning" ); - > Resume spawning of cubes
175
+ runUnityCommand (" AddSpawner" ); - > Add a spawner
176
+ runUnityCommand (" RemoveSpawner" ); - > Remove a spawner
177
+
178
+ -- - WebBridge-- -
179
+ runUnityCommand (" Help" ); - > Log all available commands
178
180
```
179
181
180
182
## Github Build Actions
0 commit comments