fix: Multiple Additive Scenes - wrong mesh and materials

This commit is contained in:
MrGadget1024 2021-02-22 22:43:33 -05:00
parent f8cac55d79
commit f3813c41cc
2 changed files with 47 additions and 5 deletions

View File

@ -40,7 +40,7 @@ MeshFilter:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5513112217680870096}
m_Mesh: {fileID: 4300000, guid: eea2ee63e29c7fb47b752b62fb1f7be2, type: 3}
m_Mesh: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
--- !u!23 &5513112217678603280
MeshRenderer:
m_ObjectHideFlags: 0
@ -55,10 +55,11 @@ MeshRenderer:
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 883a7db7f994aab478a4380ad50eda70, type: 2}
- {fileID: 2100000, guid: 7e6bf26596c6f564097734c7cc319e15, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
@ -89,10 +90,10 @@ MeshCollider:
m_Material: {fileID: 13400000, guid: 47163bc0301c1a146bbaa4d539a6ac36, type: 2}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 3
serializedVersion: 4
m_Convex: 1
m_CookingOptions: 14
m_Mesh: {fileID: 4300000, guid: eea2ee63e29c7fb47b752b62fb1f7be2, type: 3}
m_CookingOptions: 30
m_Mesh: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
--- !u!1 &5513112217680870098
GameObject:
m_ObjectHideFlags: 0
@ -144,6 +145,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
sceneId: 0
serverOnly: 0
visible: 0
m_AssetId:
hasSpawned: 0
--- !u!114 &-5073764247860119520

View File

@ -173,6 +173,16 @@ PrefabInstance:
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217677473488, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217678603280, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 7e6bf26596c6f564097734c7cc319e15, type: 2}
- target: {fileID: 5513112217680870098, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Name
@ -258,6 +268,16 @@ PrefabInstance:
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217677473488, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217678603280, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 7e6bf26596c6f564097734c7cc319e15, type: 2}
- target: {fileID: 5513112217680870098, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Name
@ -343,6 +363,16 @@ PrefabInstance:
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217677473488, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217678603280, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 7e6bf26596c6f564097734c7cc319e15, type: 2}
- target: {fileID: 5513112217680870098, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Name
@ -621,6 +651,16 @@ PrefabInstance:
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217677473488, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Mesh
value:
objectReference: {fileID: 4300000, guid: 1fe56a0e685b8434ebfeb53c69b59a5e, type: 3}
- target: {fileID: 5513112217678603280, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 7e6bf26596c6f564097734c7cc319e15, type: 2}
- target: {fileID: 5513112217680870098, guid: a104de86221e66a48832c222471d4f1e,
type: 3}
propertyPath: m_Name