2828* Tracking multiple Unity versions starting from 2018.4
2929* Build targets for webgl1, webgl2 and webgpu
3030
31- ## Live Demos
31+ ## Live Demos ( [ All Builds ] ( https://deml.io/experiments/unity-webgl/ ) )
3232
3333### Built-in Renderpipeline WebGL2
3434Version | Size | Link
@@ -40,13 +40,6 @@ Version | Size | Link
40402021.3.45f1 | 2.78 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl2
41412020.3.48f1 | 2.96 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl2
4242
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-
5043### Built-in Renderpipeline Minimum size
5144Version | Size | Link
5245--- | --- | ---
@@ -67,13 +60,6 @@ Version | Size | Link
67602021.3.45f1 | 6.31 MB | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl2
68612020.3.48f1 | 5.60 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl2
6962
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-
7763### URP Minimum Size
7864Version | Size | Link
7965--- | --- | ---
@@ -164,17 +150,33 @@ The script `WebGlBridge` adds an easy to access gameobject that can be called fr
164150Currently the following commands are available:
165151
166152``` 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
178180 ```
179181
180182## Github Build Actions
0 commit comments