Skip to content

Commit fd254c2

Browse files
committed
Merge branch 'master' of https://github.com/JohannesDeml/UnityWebGL-LoadingTest into 6000.0
2 parents 6118cc1 + f96cc62 commit fd254c2

File tree

4 files changed

+77
-25
lines changed

4 files changed

+77
-25
lines changed

Assets/Plugins/WebGL/WebBridge/WebBridge.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ private static void SetGlobalVariables()
8585
}
8686
WebToolPlugins.SetVariable("webGlVersion", webGraphics);
8787
WebToolPlugins.SetVariable("unityVersion", Application.unityVersion);
88+
WebToolPlugins.SetVariable("applicationVersion", Application.version);
8889
#if !UNITY_EDITOR && UNITY_WEBGL
8990
WebToolPlugins.SetVariable("unityCaptureAllKeyboardInputDefault", WebGLInput.captureAllKeyboardInput?"true":"false");
9091
#endif

Assets/WebGLTemplates/Develop/debug-console.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,9 @@ function getInfoPanel() {
553553
infoPanel.id = 'infoPanel';
554554
document.body.appendChild(infoPanel);
555555
var infoHeader = document.createElement('h3');
556-
if (typeof unityVersion != `undefined` && typeof webGlVersion != `undefined`) {
556+
if (typeof unityVersion != `undefined` && typeof applicationVersion != `undefined` && typeof webGlVersion != `undefined`) {
557557
// Set by WebGlBridge in Unity
558-
infoHeader.textContent = `Unity ${unityVersion} (${webGlVersion})`;
558+
infoHeader.textContent = `Unity ${unityVersion}@${applicationVersion} (${webGlVersion})`;
559559
} else {
560560
infoHeader.textContent = `Unity InfoPanel`;
561561
}

ProjectSettings/ProjectSettings.asset

Lines changed: 73 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
--- !u!129 &1
44
PlayerSettings:
55
m_ObjectHideFlags: 0
6-
serializedVersion: 23
6+
serializedVersion: 26
77
productGUID: 36128be55b3d22b46894bbc0c8443b80
88
AndroidProfiler: 0
99
AndroidFilterTouchesWhenObscured: 0
@@ -48,14 +48,16 @@ PlayerSettings:
4848
defaultScreenHeightWeb: 600
4949
m_StereoRenderingPath: 0
5050
m_ActiveColorSpace: 0
51+
unsupportedMSAAFallback: 0
52+
m_SpriteBatchVertexThreshold: 300
5153
m_MTRendering: 1
5254
mipStripping: 0
5355
numberOfMipsStripped: 0
56+
numberOfMipsStrippedPerMipmapLimitGroup: {}
5457
m_StackTraceTypes: 010000000100000001000000010000000100000001000000
5558
iosShowActivityIndicatorOnLoading: -1
5659
androidShowActivityIndicatorOnLoading: -1
5760
iosUseCustomAppBackgroundBehavior: 0
58-
iosAllowHTTPDownload: 1
5961
allowedAutorotateToPortrait: 1
6062
allowedAutorotateToPortraitUpsideDown: 1
6163
allowedAutorotateToLandscapeRight: 1
@@ -74,6 +76,7 @@ PlayerSettings:
7476
androidMinimumWindowWidth: 400
7577
androidMinimumWindowHeight: 300
7678
androidFullscreenMode: 1
79+
androidAutoRotationBehavior: 1
7780
defaultIsNativeResolution: 1
7881
macRetinaSupport: 1
7982
runInBackground: 0
@@ -85,6 +88,7 @@ PlayerSettings:
8588
hideHomeButton: 0
8689
submitAnalytics: 1
8790
usePlayerLog: 1
91+
dedicatedServerOptimizations: 0
8892
bakeCollisionMeshes: 0
8993
forceSingleInstance: 0
9094
useFlipModelSwapchain: 1
@@ -119,22 +123,23 @@ PlayerSettings:
119123
switchNVNShaderPoolsGranularity: 33554432
120124
switchNVNDefaultPoolsGranularity: 16777216
121125
switchNVNOtherPoolsGranularity: 16777216
126+
switchGpuScratchPoolGranularity: 2097152
127+
switchAllowGpuScratchShrinking: 0
122128
switchNVNMaxPublicTextureIDCount: 0
123129
switchNVNMaxPublicSamplerIDCount: 0
130+
switchNVNGraphicsFirmwareMemory: 32
131+
switchMaxWorkerMultiple: 8
124132
stadiaPresentMode: 0
125133
stadiaTargetFramerate: 0
126134
vulkanNumSwapchainBuffers: 3
127135
vulkanEnableSetSRGBWrite: 0
128136
vulkanEnablePreTransform: 0
129137
vulkanEnableLateAcquireNextImage: 0
130138
vulkanEnableCommandBufferRecycling: 1
131-
m_SupportedAspectRatios:
132-
4:3: 1
133-
5:4: 1
134-
16:10: 1
135-
16:9: 1
136-
Others: 1
137-
bundleVersion: 1.0.0
139+
loadStoreDebugModeEnabled: 0
140+
visionOSBundleVersion: 1.0
141+
tvOSBundleVersion: 1.0
142+
bundleVersion: 1.1.0
138143
preloadedAssets: []
139144
metroInputSource: 0
140145
wsaTransparentSwapchain: 0
@@ -146,17 +151,20 @@ PlayerSettings:
146151
isWsaHolographicRemotingEnabled: 0
147152
enableFrameTimingStats: 0
148153
enableOpenGLProfilerGPURecorders: 1
154+
allowHDRDisplaySupport: 0
149155
useHDRDisplay: 0
150-
D3DHDRBitDepth: 0
156+
hdrBitDepth: 0
151157
m_ColorGamuts: 00000000
152158
targetPixelDensity: 30
153159
resolutionScalingMode: 0
154160
resetResolutionOnWindowResize: 0
155161
androidSupportedAspectRatio: 1
156162
androidMaxAspectRatio: 2.1
157-
applicationIdentifier: {}
163+
applicationIdentifier:
164+
Standalone: com.JohannesDeml.WebLoadingTest
158165
buildNumber:
159166
Standalone: 1.0.0
167+
VisionOS: 0
160168
iPhone: 0
161169
tvOS: 0
162170
overrideDefaultApplicationIdentifier: 0
@@ -174,12 +182,15 @@ PlayerSettings:
174182
APKExpansionFiles: 0
175183
keepLoadedShadersAlive: 0
176184
StripUnusedMeshComponents: 1
185+
strictShaderVariantMatching: 0
177186
VertexChannelCompressionMask: 4054
178187
iPhoneSdkVersion: 988
179-
iOSTargetOSVersionString: 11.0
188+
iOSTargetOSVersionString: 12.0
180189
tvOSSdkVersion: 0
181190
tvOSRequireExtendedGameController: 0
182-
tvOSTargetOSVersionString: 11.0
191+
tvOSTargetOSVersionString: 12.0
192+
VisionOSSdkVersion: 0
193+
VisionOSTargetOSVersionString: 1.0
183194
uIPrerenderedIcon: 0
184195
uIRequiresPersistentWiFi: 0
185196
uIRequiresFullScreen: 1
@@ -227,8 +238,10 @@ PlayerSettings:
227238
appleDeveloperTeamID:
228239
iOSManualSigningProvisioningProfileID:
229240
tvOSManualSigningProvisioningProfileID:
241+
VisionOSManualSigningProvisioningProfileID:
230242
iOSManualSigningProvisioningProfileType: 0
231243
tvOSManualSigningProvisioningProfileType: 0
244+
VisionOSManualSigningProvisioningProfileType: 0
232245
appleEnableAutomaticSigning: 0
233246
iOSRequireARKit: 0
234247
iOSAutomaticallyDetectAndAddCapabilities: 1
@@ -243,13 +256,15 @@ PlayerSettings:
243256
useCustomLauncherGradleManifest: 0
244257
useCustomBaseGradleTemplate: 0
245258
useCustomGradlePropertiesTemplate: 0
259+
useCustomGradleSettingsTemplate: 0
246260
useCustomProguardFile: 0
247261
AndroidTargetArchitectures: 5
248262
AndroidTargetDevices: 0
249263
AndroidSplashScreenScale: 0
250264
androidSplashScreen: {fileID: 0}
251265
AndroidKeystoreName: '{inproject}: '
252266
AndroidKeyaliasName:
267+
AndroidEnableArmv9SecurityFeatures: 0
253268
AndroidBuildApkPerCpuArchitecture: 0
254269
AndroidTVCompatibility: 1
255270
AndroidIsGame: 1
@@ -263,7 +278,6 @@ PlayerSettings:
263278
banner: {fileID: 0}
264279
androidGamepadSupportLevel: 0
265280
chromeosInputEmulation: 1
266-
AndroidMinifyWithR8: 0
267281
AndroidMinifyRelease: 0
268282
AndroidMinifyDebug: 0
269283
AndroidValidateAppBundleSize: 1
@@ -475,6 +489,7 @@ PlayerSettings:
475489
- m_BuildTarget: WebGL
476490
m_StaticBatching: 0
477491
m_DynamicBatching: 0
492+
m_BuildTargetShaderSettings: []
478493
m_BuildTargetGraphicsJobs:
479494
- m_BuildTarget: MacStandaloneSupport
480495
m_GraphicsJobs: 0
@@ -526,6 +541,8 @@ PlayerSettings:
526541
m_Devices:
527542
- Oculus
528543
- OpenVR
544+
m_DefaultShaderChunkSizeInMB: 16
545+
m_DefaultShaderChunkCount: 0
529546
openGLRequireES31: 0
530547
openGLRequireES31AEP: 0
531548
openGLRequireES32: 0
@@ -540,10 +557,14 @@ PlayerSettings:
540557
m_BuildTargetGroupLightmapEncodingQuality:
541558
- m_BuildTarget: WebGL
542559
m_EncodingQuality: 0
560+
m_BuildTargetGroupHDRCubemapEncodingQuality:
561+
- m_BuildTarget: WebGL
562+
m_EncodingQuality: 1
543563
m_BuildTargetGroupLightmapSettings:
544564
- m_BuildTarget: WebGL
545565
m_TextureStreamingEnabled: 0
546566
m_TextureStreamingPriority: 0
567+
m_BuildTargetGroupLoadStoreDebugModeSettings: []
547568
m_BuildTargetNormalMapEncoding: []
548569
m_BuildTargetDefaultTextureCompressionFormat: []
549570
playModeTestRunnerEnabled: 0
@@ -556,17 +577,19 @@ PlayerSettings:
556577
locationUsageDescription:
557578
microphoneUsageDescription:
558579
bluetoothUsageDescription:
580+
macOSTargetOSVersion: 10.13.0
559581
switchNMETAOverride:
560582
switchNetLibKey:
561583
switchSocketMemoryPoolSize: 6144
562584
switchSocketAllocatorPoolSize: 128
563585
switchSocketConcurrencyLimit: 14
564586
switchScreenResolutionBehavior: 2
565587
switchUseCPUProfiler: 0
566-
switchUseGOLDLinker: 0
588+
switchEnableFileSystemTrace: 0
567589
switchLTOSetting: 0
568590
switchApplicationID: 0x01004b9000490000
569591
switchNSODependencies:
592+
switchCompilerFlags:
570593
switchTitleNames_0:
571594
switchTitleNames_1:
572595
switchTitleNames_2:
@@ -640,7 +663,6 @@ PlayerSettings:
640663
switchReleaseVersion: 0
641664
switchDisplayVersion: 1.0.0
642665
switchStartupUserAccount: 0
643-
switchTouchScreenUsage: 0
644666
switchSupportedLanguagesMask: 0
645667
switchLogoType: 0
646668
switchApplicationErrorCodeCategory:
@@ -682,6 +704,7 @@ PlayerSettings:
682704
switchNativeFsCacheSize: 32
683705
switchIsHoldTypeHorizontal: 0
684706
switchSupportedNpadCount: 8
707+
switchEnableTouchScreen: 1
685708
switchSocketConfigEnabled: 0
686709
switchTcpInitialSendBufferSize: 32
687710
switchTcpInitialReceiveBufferSize: 64
@@ -692,8 +715,8 @@ PlayerSettings:
692715
switchSocketBufferEfficiency: 4
693716
switchSocketInitializeEnabled: 1
694717
switchNetworkInterfaceManagerInitializeEnabled: 1
695-
switchPlayerConnectionEnabled: 1
696718
switchUseNewStyleFilepaths: 0
719+
switchUseLegacyFmodPriorities: 0
697720
switchUseMicroSleepForYield: 1
698721
switchEnableRamDiskSupport: 0
699722
switchMicroSleepForYieldTime: 25
@@ -781,6 +804,7 @@ PlayerSettings:
781804
webGLMemorySize: 256
782805
webGLExceptionSupport: 1
783806
webGLNameFilesAsHashes: 1
807+
webGLShowDiagnostics: 0
784808
webGLDataCaching: 1
785809
webGLDebugSymbols: 0
786810
webGLEmscriptenArgs:
@@ -793,24 +817,44 @@ PlayerSettings:
793817
webGLLinkerTarget: 1
794818
webGLThreadsSupport: 0
795819
webGLDecompressionFallback: 0
820+
webGLInitialMemorySize: 32
821+
webGLMaximumMemorySize: 2048
822+
webGLMemoryGrowthMode: 2
823+
webGLMemoryLinearGrowthStep: 16
824+
webGLMemoryGeometricGrowthStep: 0.2
825+
webGLMemoryGeometricGrowthCap: 96
796826
webGLPowerPreference: 2
797-
scriptingDefineSymbols: {}
827+
scriptingDefineSymbols:
828+
Standalone:
829+
WebGL: WEBTOOLS_LOG_CALLS
798830
additionalCompilerArguments: {}
799831
platformArchitecture: {}
800832
scriptingBackend: {}
801833
il2cppCompilerConfiguration:
802834
WebGL: 1
835+
il2cppCodeGeneration: {}
803836
managedStrippingLevel:
837+
EmbeddedLinux: 1
838+
GameCoreScarlett: 1
839+
GameCoreXboxOne: 1
840+
Nintendo Switch: 1
841+
PS4: 1
842+
PS5: 1
843+
QNX: 1
844+
Stadia: 1
845+
VisionOS: 1
804846
WebGL: 3
847+
Windows Store Apps: 1
848+
XboxOne: 1
849+
iPhone: 1
850+
tvOS: 1
805851
incrementalIl2cppBuild: {}
806852
suppressCommonWarnings: 1
807853
allowUnsafeCode: 0
808854
useDeterministicCompilation: 1
809-
enableRoslynAnalyzers: 1
810855
additionalIl2CppArgs:
811856
scriptingRuntimeVersion: 1
812857
gcIncremental: 0
813-
assemblyVersionValidation: 1
814858
gcWBarrierValidation: 0
815859
apiCompatibilityLevelPerPlatform:
816860
WebGL: 6
@@ -885,15 +929,22 @@ PlayerSettings:
885929
luminVersion:
886930
m_VersionCode: 1
887931
m_VersionName:
932+
hmiPlayerDataPath:
933+
hmiForceSRGBBlit: 1
934+
embeddedLinuxEnableGamepadInput: 1
935+
hmiLogStartupTiming: 0
936+
hmiCpuConfiguration:
888937
apiCompatibilityLevel: 6
889938
activeInputHandler: 0
939+
windowsGamepadBackendHint: 0
890940
cloudProjectId:
891941
framebufferDepthMemorylessMode: 0
892942
qualitySettingsNames: []
893943
projectName:
894944
organizationId:
895945
cloudEnabled: 0
896946
legacyClampBlendShapeWeights: 0
897-
playerDataPath:
898-
forceSRGBBlit: 1
947+
hmiLoadingImage: {fileID: 0}
948+
platformRequiresReadableAssets: 0
899949
virtualTexturingSupportEnabled: 0
950+
insecureHttpOption: 0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Version | Size | Link
126126
* There are some combinations for **iOS** that have **problems**: With recent versions **URP with WebGL 1** does not work at all and **builtin render pipeline with WebGL 2** has performance problems or might not load at all. I recommend to either use URP with WebGL2 or builtin with WebGL1, if you are targeting iOS. You can always test the builds on your device, to see which combination might fit your needs: https://deml.io/experiments/unity-webgl/
127127
* If you want to use this project as a basis for your project, be sure to select the release/branch for your unity version. Beta versions oftentimes have problems, therefore I would recommend to use the latest LTS version to run your project.
128128
* The server is configured to support wasm streaming and brotli compression, see [.htaccess 2020](./Configuration/2020/.htaccess) [.htaccess 2019](./Configuration/2019/.htaccess)
129-
* Some servers (such as itch.io) don't support brotli compression, you should then use gzip compression instead. If brotli is misconfigured or not supported you will get an error along the lines of:
129+
* Due to the odd way that Unity does brotli compression, some servers (such as itch.io) don't support it, you should [learn how to manually compress your game](https://miltoncandelero.github.io/unity-webgl-compression) or use gzip compression instead. If brotli is misconfigured or not supported you will get an error along the lines of:
130130
```
131131
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.
132132
```

0 commit comments

Comments
 (0)