
Тестирование размера и времени загрузки Testing Unity для разных версий (2018.4 - 6000.0) и настройки


| Версия | Размер | Связь |
|---|---|---|
| 6000.0.25f1 | 3,32 МБ | https://deml.io/experiments/unity-webgl/6000.0.25f1-webgl2 |
| 2023.2.20F1 | 3,23 МБ | https://deml.io/experiments/unity-webgl/2023.2.20f1-webgl2 |
| 2023.1.20F1 | 3,14 МБ | https://deml.io/experiments/unity-webgl/2023.1.20f1-webgl2 |
| 2022.3.50F1 | 3,12 МБ | https://deml.io/experiments/unity-webgl/2022.3.50f1-webgl2 |
| 2021.3.45F1 | 2,78 МБ | https://deml.io/experiments/unity-webgl/2021.3.45f1-webgl2 |
| 2020.3.48F1 | 2,96 МБ | https://deml.io/experiments/unity-webgl/2020.3.48f1-webgl2 |
| Версия | Размер | Связь |
|---|---|---|
| 6000.0.25f1 | 2,92 МБ | https://deml.io/experiments/unity-webgl/6000.0.25f1-minsize-webgl2 |
| 2023.2.20F1 | 2,85 МБ | https://deml.io/experiments/unity-webgl/2023.2.20f1-minsize-webgl2 |
| 2023.1.20F1 | 2,72 МБ | https://deml.io/experiments/unity-webgl/2023.1.20f1-minsize-webgl2 |
| 2022.3.50F1 | 2,69 МБ | https://deml.io/experiments/unity-webgl/2022.3.50f1-minsize-webgl1 |
| 2021.3.45F1 | 2,74 МБ | https://deml.io/experiments/unity-webgl/2021.3.45f1-minsize-webgl1 |
| 2020.3.48F1 | 2,48 МБ | https://deml.io/experiments/unity-webgl/2020.3.48f1-minsize-webgl1 |
| Версия | Размер | Связь |
|---|---|---|
| 6000.0.25f1 | 7,82 МБ | https://deml.io/experiments/unity-webgl/6000.0.25f1-urp-webgl2 |
| 2023.2.20F1 | 6,87 МБ | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-webgl2 |
| 2023.1.20F1 | 6,25 МБ | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-webgl2 |
| 2022.3.50F1 | 5,92 МБ | https://deml.io/experiments/unity-webgl/2022.3.50f1-urp-webgl2 |
| 2021.3.45F1 | 6,31 МБ | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-webgl2 |
| 2020.3.48F1 | 5,60 МБ | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-webgl2 |
| Версия | Размер | Связь |
|---|---|---|
| 6000.0.25f1 | 6,05 МБ | https://deml.io/experiments/unity-webgl/6000.0.25f1-urp-minsize-webgl2 |
| 2023.2.20F1 | 5,30 МБ | https://deml.io/experiments/unity-webgl/2023.2.20f1-urp-minsize-webgl2 |
| 2023.1.20F1 | 5,71 МБ | https://deml.io/experiments/unity-webgl/2023.1.20f1-urp-minsize-webgl2 |
| 2022.3.50F1 | 4,65 МБ | https://deml.io/experiments/unity-webgl/2022.3.50f1-urp-minsize-webgl1 |
| 2021.3.45F1 | 6,11 МБ | https://deml.io/experiments/unity-webgl/2021.3.45f1-urp-minsize-webgl1 |
| 2020.3.48F1 | 4,86 МБ | https://deml.io/experiments/unity-webgl/2020.3.48f1-urp-minsize-webgl1 |
| Платформа | Хром | Firefox | Край | Сафари | Internet Explorer |
|---|---|---|---|---|---|
| Windows 10 | ✔ | ✔ | ✔ | ➖ | |
| Linux | ✔ | ✔ | ✔ | ➖ | ➖ |
| Маки | ✔ | ✔ | ✔ | ✔ | ➖ |
| Android | ✔ | ✔ | ✔ | ➖ | ➖ |
| ios | ✔ | ✔ | ✔ | ✔ | ➖ |
| Android Smart TV | ✔ | ➖ | ➖ | ➖ | ➖ |
✔ : Поддерживается |
An error occurred running the Unity content on this page. See you browser JavaScript console for more info. The error: Script error. - С iOS 16.2 и Firefox 108 я больше не мог воспроизводить эту проблему на 2019.4. Unable to parse Build/WEBGL.framework.js.br! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: br" present. Check browser Console and Devtools Network tab to debug.

Shader error in 'Hidden/Universal/CoreBlit': invalid subscript 'positionCS' at
UnityWebGL-LoadingTest/Library/PackageCache/[email protected]/Runtime/Utilities/Blit.hlsl(92) (on gles)
Compiling Vertex program with DISABLE_TEXTURE2D_X_ARRAY
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
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
Shader error in 'Hidden/kMotion/CameraMotionVectors': SV_VertexID semantic is not supported on GLES 2.0 at line 11 (on gles)
Compiling Subshader: 0, Pass: , Vertex program with <no keywords>
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
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
Texture creation failed. 'ShadowAuto' is not supported for Render usage on this platform. Use 'SystemInfo.IsFormatSupported' C# API to check format support.
NullReferenceException: Object reference not set to an instance of an object.
Tools/Build WebGL/minsizeSizeNoneMaster Эта функциональность была добавлена 2021-11-21 и поддерживается только выпусками, начинающимися в эту дату
Скрипт WebGlBridge добавляет легко доступ к GameObject, который можно вызвать из консоли браузера через unityGame.SendMessage("WebGL", "COMMAND_NAME",PARAMETER)
В настоящее время доступны следующие команды:
runUnityCommand ( "AllocateByteArrayMemory" , int mb ) ; - > Allocate memory to test memory usage and limits
runUnityCommand ( "CheckOnlineStatus" ) ; - > Check if browser is online
runUnityCommand ( "CopyToClipboard" , "string text" ) ; - > Copy text to clipboard
runUnityCommand ( "DeleteAllPlayerPrefs" ) ; - > PlayerPrefs . DeleteAll
runUnityCommand ( "DisableCaptureAllKeyboardInput" ) ; - > Disable unity from consuming all keyboard input
runUnityCommand ( "EnableCaptureAllKeyboardInput" ) ; - > Enable unity from consuming all keyboard input
runUnityCommand ( "LogExampleMessages" ) ; - > Log example messages for Log , warning and error
runUnityCommand ( "LogMemory" ) ; - > Logs the current memory
runUnityCommand ( "LogMessage" , "string message" ) ; - > Log a custom message
runUnityCommand ( "LogShaderCompilation" , int enabled ) ; - > GraphicsSettings . logWhenShaderIsCompiled
runUnityCommand ( "LogTextureSupport" ) ; - > Log supported and unsupported texture formats
runUnityCommand ( "LogUserAgent" ) ; - > Log User Agent and isMobileDevice
runUnityCommand ( "ReleaseByteArrayMemory" ) ; - > Release all allocated byte array memory
runUnityCommand ( "SaveScreenshot" ) ; - > Save current screen as PNG
runUnityCommand ( "SaveScreenshotSuperSize" , int superSize ) ; - > Save current screen as PNG with variable super size
runUnityCommand ( "SetApplicationRunInBackground" , int runInBackground ) ; - > Application . runInBackground
runUnityCommand ( "SetApplicationTargetFrameRate" , int targetFrameRate ) ; - > Application . targetFrameRate
runUnityCommand ( "SetTimeFixedDeltaTime" , float fixedDeltaTime ) ; - > Time . fixedDeltaTime
runUnityCommand ( "SetTimeTimeScale" , float timeScale ) ; - > Time . timeScale
runUnityCommand ( "ThrowDictionaryException" ) ; - > Throw a dictionary key not found exception
runUnityCommand ( "ToggleInfoPanel" ) ; - > Toggle develop ui visibility of InfoPanel
runUnityCommand ( "TriggerGarbageCollection" ) ; - > Trigger garbage collection
runUnityCommand ( "UnloadUnusedAssets" ) ; - > Resources . UnloadUnusedAssets runUnityCommand ( "AddSpawner" ) ; - > Add a spawner
runUnityCommand ( "PauseSpawning" ) ; - > Pause spawning of cubes
runUnityCommand ( "RemoveSpawner" ) ; - > Remove a spawner
runUnityCommand ( "ResumeSpawning" ) ; - > Resume spawning of cubes runUnityCommand ( "Help" ) ; - > Log all available commands Этот репозиторий поддерживает непрерывную интеграцию через game.ci. Существуют сценарии для создания лицензии Unity, создания проекта и обновления проекта.
Основным рабочим процессом действий GitHub является release.yml. На стороне Unity пользовательский сценарий сборки на основе Game.ci BuildScript используется: buildscript.cs. Этот скрипт поддерживает определение различной логики сборки через теги GIT через следующий синтаксис: UNITY_VERSION - TAG1 - TAG2 ... Пример: 2022.2.0f1-urp-webgl2
Поддерживаются следующие теги:
minsize : установите оптимизацию кода в размере и не поддерживает исключенияdebug : постройте сборку разработки со символами встроенной отладки и полным стекомwebgl1 : сборка для Webgl1webgl2 : сборка для WebGl2 Для обновления Unity Undage-unity.yml используется. Это может быть вызвано с помощью действий GitHub вручную, определив филиал для обновления и некоторых дополнительных настроек
Он создаст запрос на притяжение с недавно определенной версией Unity, а также теги, чтобы запустить автоматические сборки. Кроме того, все пакеты обновляются до их последней версии, см. Также UnityPackagescripts.cs.
Вы можете найти список всех живых сборок с их размерами здесь: https://deml.io/experiments/unity-webgl/