Skip to content

Commit e0095ef

Browse files
authored
chore: update unity project version to unity2022.3.6f1 (#5529)
* Updated whole project from Unity 2021.3.22f1 LTS to Unity 2022.3.6f1 LTS * Updated UberPost shader based on URP 14.0.8. Re-applying our alpha value fix * Updated CharacterPreview prefab camera background color from white to black to improve avatars blending with the passport screen background * As per 2022.3.6f1 the annoying "FMOD errors" in the WebGL build should've gone away * Updated CI images used
1 parent 97da641 commit e0095ef

File tree

86 files changed

+723
-252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+723
-252
lines changed

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ references:
1212
at: *working_directory
1313

1414
.unity_linux_image: &unity_linux_image
15-
- image: unityci/editor:ubuntu-2021.3.22f1-linux-il2cpp-1.0.1
15+
- image: unityci/editor:ubuntu-2022.3.6f1-linux-il2cpp-2.0.0
1616
environment:
1717
DCL_OUTPUT_NAME: linux
1818
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
@@ -23,7 +23,7 @@ references:
2323
# ~~~~~~~~~~~~~~~~~~~~ <- folder name
2424

2525
.unity_mac_image: &unity_mac_image
26-
- image: unityci/editor:ubuntu-2021.3.22f1-mac-mono-1.0.1
26+
- image: unityci/editor:ubuntu-2022.3.6f1-mac-mono-2.0.0
2727
environment:
2828
DCL_OUTPUT_NAME: mac
2929
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
@@ -34,7 +34,7 @@ references:
3434
# ~~~~~~~~~~~~~~~~~~ <- folder name
3535

3636
.unity_windows_image: &unity_windows_image
37-
- image: unityci/editor:ubuntu-2021.3.22f1-windows-mono-1.0.1
37+
- image: unityci/editor:ubuntu-2022.3.6f1-windows-mono-2.0.0
3838
environment:
3939
DCL_OUTPUT_NAME: windows
4040
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
@@ -45,7 +45,7 @@ references:
4545
# ~~~~~~~~~~~~~~~~~~~~~~ <- folder name
4646

4747
.unity_webgl_image: &unity_webgl_image
48-
- image: unityci/editor:2021.3.22f1-webgl-1
48+
- image: unityci/editor:2022.3.6f1-webgl-2.0.0
4949
environment:
5050
DCL_OUTPUT_NAME: webgl
5151
PROJECT_PATH: /tmp/workspace/unity-renderer/unity-renderer
@@ -116,13 +116,13 @@ commands:
116116
echo $DCL_OUTPUT_NAME > /tmp/target
117117
- restore_cache:
118118
keys:
119-
- build-{{ checksum "/tmp/target" }}-{{ checksum "../.unitysources-checksum" }}-{{ .Branch }}
120-
- build-{{ checksum "/tmp/target" }}-{{ checksum "../.unitysources-checksum" }}-dev
119+
- build-{{ checksum "/tmp/target" }}-{{ checksum "../.unitysources-checksum" }}-{{ .Branch }}-2022.3.6f1
120+
- build-{{ checksum "/tmp/target" }}-{{ checksum "../.unitysources-checksum" }}-dev-2022.3.6f1
121121
- restore_cache: &RESTORE_LIBRARY_CACHE
122122
name: Restore library if exists
123123
keys:
124-
- library-{{ checksum "/tmp/target" }}-{{ .Environment.LIBRARY_CACHE_VERSION }}-{{ .Branch }}
125-
- library-{{ checksum "/tmp/target" }}-{{ .Environment.LIBRARY_CACHE_VERSION }}-dev
124+
- library-{{ checksum "/tmp/target" }}-{{ .Environment.LIBRARY_CACHE_VERSION }}-{{ .Branch }}-2022.3.6f1
125+
- library-{{ checksum "/tmp/target" }}-{{ .Environment.LIBRARY_CACHE_VERSION }}-dev-2022.3.6f1
126126
- run:
127127
name: Build Unity Project
128128
no_output_timeout: 45m
@@ -141,11 +141,11 @@ commands:
141141

142142
- save_cache:
143143
name: Store build cache
144-
key: build-{{ checksum "/tmp/target" }}-{{ checksum "../.unitysources-checksum" }}-{{ .Branch }}
144+
key: build-{{ checksum "/tmp/target" }}-{{ checksum "../.unitysources-checksum" }}-{{ .Branch }}-2022.3.6f1
145145
paths: *CACHED_PATHS
146146
- save_cache:
147147
name: Store library
148-
key: library-{{ checksum "/tmp/target" }}-{{ .Environment.LIBRARY_CACHE_VERSION }}-{{ .Branch }}
148+
key: library-{{ checksum "/tmp/target" }}-{{ .Environment.LIBRARY_CACHE_VERSION }}-{{ .Branch }}-2022.3.6f1
149149
paths:
150150
- ./unity-renderer/Library
151151
- run:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ This repository contains the reference implementation of the [decentraland explo
1414
git lfs install
1515
git lfs pull
1616

17-
* The [Unity](https://unity.com) engine and IDE, currently using version 2021.3.14f1
17+
* The [Unity](https://unity.com) engine and IDE, currently using version 2022.3.6f1
1818
* [node.js](https://nodejs.com), version 16 or later
1919

2020
### Steps
2121

2222
Check: [Multiplatform in Editor](docs/multiplatform-in-editor.md)
2323

24-
1. Download and install Unity 2021.3.14f1
24+
1. Download and install Unity 2022.3.6f1
2525
2. Open the scene named `InitialScene`
2626
3. Within the scene, select the `DebugConfig` GameObject.
2727
4. On `DebugConfig` inspector, make sure that `Base url mode` is set to `Custom`

browser-interface/static/unity.loader.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:41d052728f63be880ddac4793acb4f6a04cc5da97b8c3639bba5b66d7a641e4c
3-
size 1728
2+
oid sha256:e38b011f6feaac6f848faa6f6e087635b6532e9f110ae846587d02a0efa5b2fa
3+
size 164631

unity-renderer/Assets/DCLPlugins/ECS7/Systems/UiPointerEvents/Tests/UiPointerEventsSystemShould.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ void UpdateSystem()
272272
{
273273
components = { 1 }
274274
};
275+
uiDocumentInstance.rootVisualElement.Add(internalUiComponent.rootElement);
275276

276277
internalComponents.uiContainerComponent.PutFor(scene, entity, internalUiComponent);
277278

unity-renderer/Assets/Materials/GizmosMaterialInWorld.mat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MonoBehaviour:
1212
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
1313
m_Name:
1414
m_EditorClassIdentifier:
15-
version: 5
15+
version: 7
1616
--- !u!21 &2100000
1717
Material:
1818
serializedVersion: 8
@@ -22,6 +22,8 @@ Material:
2222
m_PrefabAsset: {fileID: 0}
2323
m_Name: GizmosMaterialInWorld
2424
m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3}
25+
m_Parent: {fileID: 0}
26+
m_ModifiedSerializedProperties: 0
2527
m_ValidKeywords: []
2628
m_InvalidKeywords: []
2729
m_LightmapFlags: 4
@@ -31,6 +33,7 @@ Material:
3133
stringTagMap:
3234
RenderType: Opaque
3335
disabledShaderPasses: []
36+
m_LockedProperties:
3437
m_SavedProperties:
3538
serializedVersion: 3
3639
m_TexEnvs:
@@ -93,6 +96,7 @@ Material:
9396
m_Ints: []
9497
m_Floats:
9598
- _AlphaClip: 0
99+
- _AlphaToMask: 0
96100
- _BaseMapUVs: 0
97101
- _Blend: 0
98102
- _BlendOp: 0
@@ -102,6 +106,7 @@ Material:
102106
- _CullYPlane: 0.5
103107
- _Cutoff: 0.5
104108
- _DstBlend: 0
109+
- _DstBlendAlpha: 0
105110
- _EmissiveMapUVs: 0
106111
- _EnvironmentReflections: 1
107112
- _FadeDirection: 0
@@ -124,6 +129,7 @@ Material:
124129
- _SpecSource: 0
125130
- _SpecularHighlights: 1
126131
- _SrcBlend: 1
132+
- _SrcBlendAlpha: 1
127133
- _Stencil: 0
128134
- _StencilComp: 8
129135
- _StencilOp: 0

unity-renderer/Assets/Materials/ParcelMinimapIcon.mat

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Material:
99
m_PrefabAsset: {fileID: 0}
1010
m_Name: ParcelMinimapIcon
1111
m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3}
12+
m_Parent: {fileID: 0}
13+
m_ModifiedSerializedProperties: 0
1214
m_ValidKeywords: []
1315
m_InvalidKeywords: []
1416
m_LightmapFlags: 4
@@ -18,6 +20,7 @@ Material:
1820
stringTagMap:
1921
RenderType: Opaque
2022
disabledShaderPasses: []
23+
m_LockedProperties:
2124
m_SavedProperties:
2225
serializedVersion: 3
2326
m_TexEnvs:
@@ -52,12 +55,14 @@ Material:
5255
m_Ints: []
5356
m_Floats:
5457
- _AlphaClip: 0
58+
- _AlphaToMask: 0
5559
- _Blend: 0
5660
- _BlendOp: 0
5761
- _BumpScale: 1
5862
- _Cull: 2
5963
- _Cutoff: 0.5
6064
- _DstBlend: 0
65+
- _DstBlendAlpha: 0
6166
- _EnvironmentReflections: 1
6267
- _GlossMapScale: 0
6368
- _Glossiness: 0
@@ -71,6 +76,7 @@ Material:
7176
- _SmoothnessTextureChannel: 0
7277
- _SpecularHighlights: 1
7378
- _SrcBlend: 1
79+
- _SrcBlendAlpha: 1
7480
- _Surface: 0
7581
- _WorkflowMode: 1
7682
- _ZWrite: 1
@@ -92,4 +98,4 @@ MonoBehaviour:
9298
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
9399
m_Name:
94100
m_EditorClassIdentifier:
95-
version: 5
101+
version: 7

unity-renderer/Assets/Materials/TileGround.mat

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ MonoBehaviour:
1212
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
1313
m_Name:
1414
m_EditorClassIdentifier:
15-
version: 5
15+
version: 7
1616
--- !u!21 &2100000
1717
Material:
1818
serializedVersion: 8
@@ -22,6 +22,8 @@ Material:
2222
m_PrefabAsset: {fileID: 0}
2323
m_Name: TileGround
2424
m_Shader: {fileID: 4800000, guid: 8d2bb70cbf9db8d4da26e15b26e74248, type: 3}
25+
m_Parent: {fileID: 0}
26+
m_ModifiedSerializedProperties: 0
2527
m_ValidKeywords: []
2628
m_InvalidKeywords: []
2729
m_LightmapFlags: 4
@@ -31,6 +33,7 @@ Material:
3133
stringTagMap:
3234
RenderType: Opaque
3335
disabledShaderPasses: []
36+
m_LockedProperties:
3437
m_SavedProperties:
3538
serializedVersion: 3
3639
m_TexEnvs:
@@ -93,12 +96,15 @@ Material:
9396
m_Ints: []
9497
m_Floats:
9598
- _AlphaClip: 0
99+
- _AlphaToMask: 0
96100
- _Blend: 0
101+
- _BlendModePreserveSpecular: 1
97102
- _BumpScale: 1
98103
- _Cull: 2
99104
- _Cutoff: 0.5
100105
- _DetailNormalMapScale: 1
101106
- _DstBlend: 0
107+
- _DstBlendAlpha: 0
102108
- _GlossMapScale: 1
103109
- _Glossiness: 0.5
104110
- _GlossinessSource: 0
@@ -116,6 +122,7 @@ Material:
116122
- _SpecSource: 1
117123
- _SpecularHighlights: 1
118124
- _SrcBlend: 1
125+
- _SrcBlendAlpha: 1
119126
- _Surface: 0
120127
- _UVSec: 0
121128
- _ZWrite: 1

unity-renderer/Assets/Rendering/Common/ForwardRenderer.asset

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,28 @@ MonoBehaviour:
1313
m_Name: NewScreenSpaceAmbientOcclusion
1414
m_EditorClassIdentifier:
1515
m_Active: 1
16-
m_Shader: {fileID: 4800000, guid: 0849e84e3d62649e8882e9d6f056a017, type: 3}
1716
m_Settings:
17+
AOMethod: 1
1818
Downsample: 0
1919
AfterOpaque: 0
2020
Source: 1
2121
NormalSamples: 2
2222
Intensity: 1.2
2323
DirectLightingStrength: 0.6
2424
Radius: 0.2
25-
SampleCount: 4
25+
Samples: 2
26+
BlurQuality: 0
27+
Falloff: 100
28+
SampleCount: -1
29+
m_BlueNoise256Textures:
30+
- {fileID: 2800000, guid: 36f118343fc974119bee3d09e2111500, type: 3}
31+
- {fileID: 2800000, guid: 4b7b083e6b6734e8bb2838b0b50a0bc8, type: 3}
32+
- {fileID: 2800000, guid: c06cc21c692f94f5fb5206247191eeee, type: 3}
33+
- {fileID: 2800000, guid: cb76dd40fa7654f9587f6a344f125c9a, type: 3}
34+
- {fileID: 2800000, guid: e32226222ff144b24bf3a5a451de54bc, type: 3}
35+
- {fileID: 2800000, guid: 3302065f671a8450b82c9ddf07426f3a, type: 3}
36+
- {fileID: 2800000, guid: 56a77a3e8d64f47b6afe9e3c95cb57d5, type: 3}
37+
m_Shader: {fileID: 4800000, guid: 0849e84e3d62649e8882e9d6f056a017, type: 3}
2638
--- !u!114 &-5304858544757240251
2739
MonoBehaviour:
2840
m_ObjectHideFlags: 0
@@ -80,15 +92,13 @@ MonoBehaviour:
8092
m_EditorClassIdentifier:
8193
m_Active: 0
8294
settings:
95+
outlineThickness: 0
96+
blurSize: 0
97+
blurSigma: 0
8398
outlineColor: {r: 0, g: 1, b: 1, a: 1}
8499
blurColor: {r: 0, g: 1, b: 1, a: 1}
85100
innerColor: {r: 0, g: 0.85890675, b: 1, a: 0.050980393}
86101
effectFade: 1
87-
outlineThickness: {fileID: 11400000, guid: 3b2a0097ac4974c4dbd22fdfcbd5cfeb, type: 2}
88-
outlineResolutionScale: {fileID: 11400000, guid: 051dce077ac0fe84ebdd212db125cae5,
89-
type: 2}
90-
blurSize: {fileID: 11400000, guid: 71984a406e9d00c4eb55991db791d8d2, type: 2}
91-
blurSigma: {fileID: 11400000, guid: 15aeca967a14da64882661d82afedba4, type: 2}
92102
filterMode: 1
93103
--- !u!114 &-981180908113067146
94104
MonoBehaviour:
@@ -127,6 +137,7 @@ MonoBehaviour:
127137
debugShaders:
128138
debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7,
129139
type: 3}
140+
hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
130141
m_RendererFeatures:
131142
- {fileID: -7551554940414059620}
132143
- {fileID: 4650022159256899313}
@@ -144,14 +155,18 @@ MonoBehaviour:
144155
samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
145156
stencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3}
146157
fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
158+
fallbackLoadingPS: {fileID: 4800000, guid: 7f888aff2ac86494babad1c2c5daeee2, type: 3}
147159
materialErrorPS: {fileID: 4800000, guid: 5fd9a8feb75a4b5894c241777f519d4e, type: 3}
148160
coreBlitPS: {fileID: 4800000, guid: 93446b5c5339d4f00b85c159e1159b7c, type: 3}
149161
coreBlitColorAndDepthPS: {fileID: 4800000, guid: d104b2fc1ca6445babb8e90b0758136b,
150162
type: 3}
163+
blitHDROverlay: {fileID: 4800000, guid: a89bee29cffa951418fc1e2da94d1959, type: 3}
151164
cameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf,
152165
type: 3}
153166
objectMotionVector: {fileID: 4800000, guid: 7b3ede40266cd49a395def176e1bc486,
154167
type: 3}
168+
dataDrivenLensFlare: {fileID: 4800000, guid: 6cda457ac28612740adb23da5d39ea92,
169+
type: 3}
155170
m_AssetVersion: 2
156171
m_OpaqueLayerMask:
157172
serializedVersion: 2
@@ -171,8 +186,6 @@ MonoBehaviour:
171186
m_DepthPrimingMode: 0
172187
m_CopyDepthMode: 0
173188
m_AccurateGbufferNormals: 0
174-
m_ClusteredRendering: 0
175-
m_TileSize: 32
176189
m_IntermediateTextureMode: 1
177190
--- !u!114 &1990522510072472895
178191
MonoBehaviour:

0 commit comments

Comments
 (0)