Skip to content

Commit cf09364

Browse files
committed
[webgl] set template to unity-webview-2020, adjusted resolution, enabled runInBackground, disalbed compression.
1 parent f36d124 commit cf09364

2 files changed

Lines changed: 316 additions & 6 deletions

File tree

sample/ProjectSettings/ProjectSettings.asset

Lines changed: 195 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ PlayerSettings:
4444
m_HolographicTrackingLossScreen: {fileID: 0}
4545
defaultScreenWidth: 1024
4646
defaultScreenHeight: 768
47-
defaultScreenWidthWeb: 480
48-
defaultScreenHeightWeb: 320
47+
defaultScreenWidthWeb: 1280
48+
defaultScreenHeightWeb: 720
4949
m_StereoRenderingPath: 0
5050
m_ActiveColorSpace: 0
5151
unsupportedMSAAFallback: 0
@@ -80,7 +80,7 @@ PlayerSettings:
8080
androidPredictiveBackSupport: 1
8181
defaultIsNativeResolution: 1
8282
macRetinaSupport: 1
83-
runInBackground: 0
83+
runInBackground: 1
8484
captureSingleScreen: 0
8585
muteOtherAudioSources: 0
8686
Prepare IOS For Recording: 0
@@ -299,7 +299,196 @@ PlayerSettings:
299299
m_Width: 128
300300
m_Height: 128
301301
m_Kind: 0
302-
m_BuildTargetPlatformIcons: []
302+
m_BuildTargetPlatformIcons:
303+
- m_BuildTarget: iPhone
304+
m_Icons:
305+
- m_Textures: []
306+
m_Width: 180
307+
m_Height: 180
308+
m_Kind: 0
309+
m_SubKind: iPhone
310+
- m_Textures: []
311+
m_Width: 120
312+
m_Height: 120
313+
m_Kind: 0
314+
m_SubKind: iPhone
315+
- m_Textures: []
316+
m_Width: 167
317+
m_Height: 167
318+
m_Kind: 0
319+
m_SubKind: iPad
320+
- m_Textures: []
321+
m_Width: 152
322+
m_Height: 152
323+
m_Kind: 0
324+
m_SubKind: iPad
325+
- m_Textures: []
326+
m_Width: 76
327+
m_Height: 76
328+
m_Kind: 0
329+
m_SubKind: iPad
330+
- m_Textures: []
331+
m_Width: 120
332+
m_Height: 120
333+
m_Kind: 3
334+
m_SubKind: iPhone
335+
- m_Textures: []
336+
m_Width: 80
337+
m_Height: 80
338+
m_Kind: 3
339+
m_SubKind: iPhone
340+
- m_Textures: []
341+
m_Width: 80
342+
m_Height: 80
343+
m_Kind: 3
344+
m_SubKind: iPad
345+
- m_Textures: []
346+
m_Width: 40
347+
m_Height: 40
348+
m_Kind: 3
349+
m_SubKind: iPad
350+
- m_Textures: []
351+
m_Width: 87
352+
m_Height: 87
353+
m_Kind: 1
354+
m_SubKind: iPhone
355+
- m_Textures: []
356+
m_Width: 58
357+
m_Height: 58
358+
m_Kind: 1
359+
m_SubKind: iPhone
360+
- m_Textures: []
361+
m_Width: 29
362+
m_Height: 29
363+
m_Kind: 1
364+
m_SubKind: iPhone
365+
- m_Textures: []
366+
m_Width: 58
367+
m_Height: 58
368+
m_Kind: 1
369+
m_SubKind: iPad
370+
- m_Textures: []
371+
m_Width: 29
372+
m_Height: 29
373+
m_Kind: 1
374+
m_SubKind: iPad
375+
- m_Textures: []
376+
m_Width: 60
377+
m_Height: 60
378+
m_Kind: 2
379+
m_SubKind: iPhone
380+
- m_Textures: []
381+
m_Width: 40
382+
m_Height: 40
383+
m_Kind: 2
384+
m_SubKind: iPhone
385+
- m_Textures: []
386+
m_Width: 40
387+
m_Height: 40
388+
m_Kind: 2
389+
m_SubKind: iPad
390+
- m_Textures: []
391+
m_Width: 20
392+
m_Height: 20
393+
m_Kind: 2
394+
m_SubKind: iPad
395+
- m_Textures: []
396+
m_Width: 1024
397+
m_Height: 1024
398+
m_Kind: 4
399+
m_SubKind: App Store
400+
- m_BuildTarget: Android
401+
m_Icons:
402+
- m_Textures: []
403+
m_Width: 432
404+
m_Height: 432
405+
m_Kind: 2
406+
m_SubKind:
407+
- m_Textures: []
408+
m_Width: 324
409+
m_Height: 324
410+
m_Kind: 2
411+
m_SubKind:
412+
- m_Textures: []
413+
m_Width: 216
414+
m_Height: 216
415+
m_Kind: 2
416+
m_SubKind:
417+
- m_Textures: []
418+
m_Width: 162
419+
m_Height: 162
420+
m_Kind: 2
421+
m_SubKind:
422+
- m_Textures: []
423+
m_Width: 108
424+
m_Height: 108
425+
m_Kind: 2
426+
m_SubKind:
427+
- m_Textures: []
428+
m_Width: 81
429+
m_Height: 81
430+
m_Kind: 2
431+
m_SubKind:
432+
- m_Textures: []
433+
m_Width: 192
434+
m_Height: 192
435+
m_Kind: 1
436+
m_SubKind:
437+
- m_Textures: []
438+
m_Width: 144
439+
m_Height: 144
440+
m_Kind: 1
441+
m_SubKind:
442+
- m_Textures: []
443+
m_Width: 96
444+
m_Height: 96
445+
m_Kind: 1
446+
m_SubKind:
447+
- m_Textures: []
448+
m_Width: 72
449+
m_Height: 72
450+
m_Kind: 1
451+
m_SubKind:
452+
- m_Textures: []
453+
m_Width: 48
454+
m_Height: 48
455+
m_Kind: 1
456+
m_SubKind:
457+
- m_Textures: []
458+
m_Width: 36
459+
m_Height: 36
460+
m_Kind: 1
461+
m_SubKind:
462+
- m_Textures: []
463+
m_Width: 192
464+
m_Height: 192
465+
m_Kind: 0
466+
m_SubKind:
467+
- m_Textures: []
468+
m_Width: 144
469+
m_Height: 144
470+
m_Kind: 0
471+
m_SubKind:
472+
- m_Textures: []
473+
m_Width: 96
474+
m_Height: 96
475+
m_Kind: 0
476+
m_SubKind:
477+
- m_Textures: []
478+
m_Width: 72
479+
m_Height: 72
480+
m_Kind: 0
481+
m_SubKind:
482+
- m_Textures: []
483+
m_Width: 48
484+
m_Height: 48
485+
m_Kind: 0
486+
m_SubKind:
487+
- m_Textures: []
488+
m_Width: 36
489+
m_Height: 36
490+
m_Kind: 0
491+
m_SubKind:
303492
m_BuildTargetBatching:
304493
- m_BuildTarget: iPhone
305494
m_StaticBatching: 1
@@ -637,10 +826,10 @@ PlayerSettings:
637826
webGLDebugSymbols: 0
638827
webGLEmscriptenArgs:
639828
webGLModulesDirectory:
640-
webGLTemplate: APPLICATION:Default
829+
webGLTemplate: PROJECT:unity-webview-2020
641830
webGLAnalyzeBuildSize: 0
642831
webGLUseEmbeddedResources: 0
643-
webGLCompressionFormat: 1
832+
webGLCompressionFormat: 2
644833
webGLWasmArithmeticExceptions: 0
645834
webGLLinkerTarget: 1
646835
webGLThreadsSupport: 0
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"templatePinStates": [],
3+
"dependencyTypeInfos": [
4+
{
5+
"userAdded": false,
6+
"type": "UnityEngine.AnimationClip",
7+
"defaultInstantiationMode": 0
8+
},
9+
{
10+
"userAdded": false,
11+
"type": "UnityEditor.Animations.AnimatorController",
12+
"defaultInstantiationMode": 0
13+
},
14+
{
15+
"userAdded": false,
16+
"type": "UnityEngine.AnimatorOverrideController",
17+
"defaultInstantiationMode": 0
18+
},
19+
{
20+
"userAdded": false,
21+
"type": "UnityEditor.Audio.AudioMixerController",
22+
"defaultInstantiationMode": 0
23+
},
24+
{
25+
"userAdded": false,
26+
"type": "UnityEngine.ComputeShader",
27+
"defaultInstantiationMode": 1
28+
},
29+
{
30+
"userAdded": false,
31+
"type": "UnityEngine.Cubemap",
32+
"defaultInstantiationMode": 0
33+
},
34+
{
35+
"userAdded": false,
36+
"type": "UnityEngine.GameObject",
37+
"defaultInstantiationMode": 0
38+
},
39+
{
40+
"userAdded": false,
41+
"type": "UnityEditor.LightingDataAsset",
42+
"defaultInstantiationMode": 0
43+
},
44+
{
45+
"userAdded": false,
46+
"type": "UnityEngine.LightingSettings",
47+
"defaultInstantiationMode": 0
48+
},
49+
{
50+
"userAdded": false,
51+
"type": "UnityEngine.Material",
52+
"defaultInstantiationMode": 0
53+
},
54+
{
55+
"userAdded": false,
56+
"type": "UnityEditor.MonoScript",
57+
"defaultInstantiationMode": 1
58+
},
59+
{
60+
"userAdded": false,
61+
"type": "UnityEngine.PhysicMaterial",
62+
"defaultInstantiationMode": 0
63+
},
64+
{
65+
"userAdded": false,
66+
"type": "UnityEngine.PhysicsMaterial2D",
67+
"defaultInstantiationMode": 0
68+
},
69+
{
70+
"userAdded": false,
71+
"type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile",
72+
"defaultInstantiationMode": 0
73+
},
74+
{
75+
"userAdded": false,
76+
"type": "UnityEngine.Rendering.PostProcessing.PostProcessResources",
77+
"defaultInstantiationMode": 0
78+
},
79+
{
80+
"userAdded": false,
81+
"type": "UnityEngine.Rendering.VolumeProfile",
82+
"defaultInstantiationMode": 0
83+
},
84+
{
85+
"userAdded": false,
86+
"type": "UnityEditor.SceneAsset",
87+
"defaultInstantiationMode": 1
88+
},
89+
{
90+
"userAdded": false,
91+
"type": "UnityEngine.Shader",
92+
"defaultInstantiationMode": 1
93+
},
94+
{
95+
"userAdded": false,
96+
"type": "UnityEngine.ShaderVariantCollection",
97+
"defaultInstantiationMode": 1
98+
},
99+
{
100+
"userAdded": false,
101+
"type": "UnityEngine.Texture",
102+
"defaultInstantiationMode": 0
103+
},
104+
{
105+
"userAdded": false,
106+
"type": "UnityEngine.Texture2D",
107+
"defaultInstantiationMode": 0
108+
},
109+
{
110+
"userAdded": false,
111+
"type": "UnityEngine.Timeline.TimelineAsset",
112+
"defaultInstantiationMode": 0
113+
}
114+
],
115+
"defaultDependencyTypeInfo": {
116+
"userAdded": false,
117+
"type": "<default_scene_template_dependencies>",
118+
"defaultInstantiationMode": 1
119+
},
120+
"newSceneOverride": 0
121+
}

0 commit comments

Comments
 (0)