|
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
|
35 | 35 | --- | --- | ---
|
36 |
| -6000.0.9f1 | 3.26 MB | https://deml.io/experiments/unity-webgl/6000.0.9f1-webgl2 |
| 36 | +6000.0.25f1 | 3.32 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-webgl2 |
37 | 37 | 2023.2.20f1 | 3.23 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-webgl2
|
38 | 38 | 2023.1.20f1 | 3.14 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-webgl2
|
39 |
| -2022.3.36f1 | 3.12 MB | https://deml.io/experiments/unity-webgl/2022.3.36f1-webgl2 |
40 |
| -2021.3.35f1 | 2.78 MB | https://deml.io/experiments/unity-webgl/2021.3.35f1-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 | 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.36f1 | 3.10 MB | https://deml.io/experiments/unity-webgl/2022.3.36f1-webgl1 |
47 |
| -2021.3.35f1 | 2.76 MB | https://deml.io/experiments/unity-webgl/2021.3.35f1-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 | --- | --- | ---
|
53 |
| -6000.0.9f1 | 3.16 MB | https://deml.io/experiments/unity-webgl/6000.0.9f1-minsize-webgl2 |
| 46 | +6000.0.25f1 | 2.92 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-minsize-webgl2 |
54 | 47 | 2023.2.20f1 | 2.85 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-minsize-webgl2
|
55 | 48 | 2023.1.20f1 | 2.72 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-minsize-webgl2
|
56 |
| -2022.3.36f1 | 2.69 MB | https://deml.io/experiments/unity-webgl/2022.3.36f1-minsize-webgl1 |
57 |
| -2021.3.35f1 | 2.73 MB | https://deml.io/experiments/unity-webgl/2021.3.35f1-minsize-webgl1 |
| 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 |
58 | 51 | 2020.3.48f1 | 2.48 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-minsize-webgl1
|
59 | 52 |
|
60 | 53 | ### URP WebGL2
|
61 | 54 | Version | Size | Link
|
62 | 55 | --- | --- | ---
|
63 |
| -6000.0.9f1 | 7.27 MB | https://deml.io/experiments/unity-webgl/6000.0.9f1-urp-webgl2 |
| 56 | +6000.0.25f1 | 7.82 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-urp-webgl2 |
64 | 57 | 2023.2.20f1 | 6.87 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-webgl2
|
65 | 58 | 2023.1.20f1 | 6.25 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-webgl2
|
66 |
| -2022.3.36f1 | 5.92 MB | https://deml.io/experiments/unity-webgl/2022.3.36f1-urp-webgl2 |
67 |
| -2021.3.35f1 | 6.31 MB | https://deml.io/experiments/unity-webgl/2021.3.35f1-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 |
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.36f1 | 5.89 MB | https://deml.io/experiments/unity-webgl/2022.3.36f1-urp-webgl1 |
74 |
| -2021.3.35f1 | 6.13 MB | https://deml.io/experiments/unity-webgl/2021.3.35f1-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 | --- | --- | ---
|
80 |
| -6000.0.9f1 | 6.51 MB | https://deml.io/experiments/unity-webgl/6000.0.9f1-urp-minsize-webgl2 |
| 66 | +6000.0.25f1 | 6.05 MB | https://deml.io/experiments/unity-webgl/6000.0.25f1-urp-minsize-webgl2 |
81 | 67 | 2023.2.20f1 | 5.30 MB | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-minsize-webgl2
|
82 | 68 | 2023.1.20f1 | 5.71 MB | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-minsize-webgl2
|
83 |
| -2022.3.36f1 | 4.64 MB | https://deml.io/experiments/unity-webgl/2022.3.36f1-urp-minsize-webgl1 |
84 |
| -2021.3.35f1 | 6.11 MB | https://deml.io/experiments/unity-webgl/2021.3.35f1-urp-minsize-webgl1 |
| 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 |
85 | 71 | 2020.3.48f1 | 4.86 MB | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-minsize-webgl1
|
86 | 72 |
|
87 | 73 |
|
88 | 74 |
|
| 75 | + |
89 | 76 | ## Platform Compatibility
|
90 | 77 |
|
91 | 78 | | Platform | Chrome | Firefox | Edge | Safari | Internet Explorer |
|
@@ -163,17 +150,33 @@ The script `WebGlBridge` adds an easy to access gameobject that can be called fr
|
163 | 150 | Currently the following commands are available:
|
164 | 151 |
|
165 | 152 | ```javascript
|
166 |
| -unityGame.SendMessage("WebGL", "DisableCaptureAllKeyboardInput"); -> Disable unity from consuming all keyboard input |
167 |
| -unityGame.SendMessage("WebGL", "EnableCaptureAllKeyboardInput"); -> Enable unity from consuming all keyboard input |
168 |
| -unityGame.SendMessage("WebGL", "LogMemory"); -> Logs the current memory |
169 |
| -unityGame.SendMessage("WebGL", "SetApplicationRunInBackground", System.Int32 runInBackground); -> Application.runInBackground |
170 |
| -unityGame.SendMessage("WebGL", "SetApplicationTargetFrameRate", System.Int32 targetFrameRate); -> Application.targetFrameRate |
171 |
| -unityGame.SendMessage("WebGL", "SetTimeFixedDeltaTime", System.Single fixedDeltaTime); -> Time.fixedDeltaTime |
172 |
| -unityGame.SendMessage("WebGL", "SetTimeTimeScale", System.Single timeScale); -> Time.timeScale |
173 |
| -unityGame.SendMessage("WebGL", "ToggleInfoPanel"); -> Toggle develop ui visibility of InfoPanel |
174 |
| -unityGame.SendMessage("WebGL", "LogExampleMessage"); -> Log an example debug message |
175 |
| -unityGame.SendMessage("WebGL", "LogMessage", "System.String message"); -> Log a custom message |
176 |
| -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 |
177 | 180 | ```
|
178 | 181 |
|
179 | 182 | ## Github Build Actions
|
|
0 commit comments