Skip to content

Commit

Permalink
fix: additive scene example not working (#534)
Browse files Browse the repository at this point in the history
* fix: null ref to scene path.

* fix: similar NRE for scene ref found in another example.
  • Loading branch information
uweeby committed Jan 20, 2021
1 parent 8310c26 commit 1580627
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 51 deletions.
104 changes: 54 additions & 50 deletions Assets/Mirror/Samples~/AdditiveScenes/Scenes/MainScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
sceneId: 1834901131
serverOnly: 1
ServerObjectManager: {fileID: 0}
ClientObjectManager: {fileID: 0}
m_AssetId:
Expand Down Expand Up @@ -418,14 +417,18 @@ MonoBehaviour:
m_EditorClassIdentifier:
syncMode: 0
syncInterval: 0.1
subScene: Assets/Mirror/Examples/AdditiveScenes/Scenes/SubScene.unity
subScene: Assets/Examples/AdditiveScenes/Scenes/SubScene.unity
--- !u!1001 &160176455
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 909502395}
m_Modifications:
- target: {fileID: 160176456, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 160176456, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_LocalPosition.x
value: -20
Expand All @@ -438,6 +441,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: -20
objectReference: {fileID: 0}
- target: {fileID: 160176456, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_LocalRotation.w
value: 0.92387956
objectReference: {fileID: 0}
- target: {fileID: 160176456, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_LocalRotation.x
value: 0
Expand All @@ -450,14 +457,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 160176456, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_LocalRotation.w
value: 0.92387956
objectReference: {fileID: 0}
- target: {fileID: 160176456, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 160176456, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
Expand All @@ -478,6 +477,10 @@ PrefabInstance:
propertyPath: forceHidden
value: 0
objectReference: {fileID: 0}
- target: {fileID: 160176459, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: sceneId
value: 1521238664
objectReference: {fileID: 0}
- target: {fileID: 160176459, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: m_AssetId
value: ab222ed73ada1ac4ba2f61e843d7627c
Expand All @@ -490,10 +493,6 @@ PrefabInstance:
propertyPath: m_LocalPlayerAuthority
value: 0
objectReference: {fileID: 0}
- target: {fileID: 160176459, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: sceneId
value: 1521238664
objectReference: {fileID: 0}
- target: {fileID: 160176461, guid: ab222ed73ada1ac4ba2f61e843d7627c, type: 3}
propertyPath: Animator
value:
Expand Down Expand Up @@ -870,6 +869,10 @@ PrefabInstance:
propertyPath: forceHidden
value: 0
objectReference: {fileID: 0}
- target: {fileID: 855244094988030909, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 855244094988030909, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_LocalPosition.x
value: -20
Expand All @@ -882,6 +885,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 20
objectReference: {fileID: 0}
- target: {fileID: 855244094988030909, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_LocalRotation.w
value: 0.38268343
objectReference: {fileID: 0}
- target: {fileID: 855244094988030909, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_LocalRotation.x
value: 0
Expand All @@ -894,14 +901,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 855244094988030909, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_LocalRotation.w
value: 0.38268343
objectReference: {fileID: 0}
- target: {fileID: 855244094988030909, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 855244094988030909, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
Expand All @@ -914,6 +913,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 855244094988030911, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: sceneId
value: 744240842
objectReference: {fileID: 0}
- target: {fileID: 855244094988030911, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: m_AssetId
value: f6d08eb9a8e35d84fa30a7e3ae64181a
Expand All @@ -922,10 +925,6 @@ PrefabInstance:
propertyPath: m_SceneId
value: 529586728
objectReference: {fileID: 0}
- target: {fileID: 855244094988030911, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
propertyPath: sceneId
value: 744240842
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: f6d08eb9a8e35d84fa30a7e3ae64181a, type: 3}
--- !u!4 &748207075 stripped
Expand Down Expand Up @@ -1140,6 +1139,10 @@ PrefabInstance:
propertyPath: m_Name
value: Cylinder
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375316, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375316, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_LocalPosition.x
value: 20
Expand All @@ -1152,6 +1155,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 20
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375316, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_LocalRotation.w
value: -0.38268325
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375316, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_LocalRotation.x
value: 0
Expand All @@ -1164,14 +1171,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375316, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_LocalRotation.w
value: -0.38268325
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375316, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375316, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
Expand All @@ -1188,14 +1187,14 @@ PrefabInstance:
propertyPath: forceHidden
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375318, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_SceneId
value: 568164022
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375318, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: sceneId
value: 1418438611
objectReference: {fileID: 0}
- target: {fileID: 6852530814182375318, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
propertyPath: m_SceneId
value: 568164022
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 12a4c14e672c00b4b840f937d824b890, type: 3}
--- !u!4 &901271863 stripped
Expand Down Expand Up @@ -2031,8 +2030,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b3fbf0a5cb914b1c9bbb8a42e081f4bd, type: 3}
m_Name:
m_EditorClassIdentifier:
Started:
m_PersistentCalls:
m_Calls: []
Port: 7777
HashCashBits: 18
SendWindowSize: 32
ReceiveWindowSize: 8192
delayMode: 0
--- !u!114 &1661834286
MonoBehaviour:
Expand Down Expand Up @@ -3635,6 +3639,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 1076878374699499735, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 1076878374699499735, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_LocalPosition.x
value: 20
Expand All @@ -3647,6 +3655,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: -20
objectReference: {fileID: 0}
- target: {fileID: 1076878374699499735, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_LocalRotation.w
value: -0.92387944
objectReference: {fileID: 0}
- target: {fileID: 1076878374699499735, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_LocalRotation.x
value: 0
Expand All @@ -3659,14 +3671,6 @@ PrefabInstance:
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1076878374699499735, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_LocalRotation.w
value: -0.92387944
objectReference: {fileID: 0}
- target: {fileID: 1076878374699499735, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 1076878374699499735, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
Expand All @@ -3679,14 +3683,14 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2648107611936813301, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_SceneId
value: 2061538488
objectReference: {fileID: 0}
- target: {fileID: 2648107611936813301, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: sceneId
value: 2757245015
objectReference: {fileID: 0}
- target: {fileID: 2648107611936813301, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: m_SceneId
value: 2061538488
objectReference: {fileID: 0}
- target: {fileID: 5697694911122891659, guid: e1971f4a8c7661546bc509b44bd91b80, type: 3}
propertyPath: forceHidden
value: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ MonoBehaviour:
serverObjectManager: {fileID: 69965675}
clientObjectManager: {fileID: 69965667}
instances: 3
gameScene:
gameScene: Assets/Examples/MultipleAdditiveScenes/Scenes/Game.unity
--- !u!4 &69965670
Transform:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -383,8 +383,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b3fbf0a5cb914b1c9bbb8a42e081f4bd, type: 3}
m_Name:
m_EditorClassIdentifier:
Started:
m_PersistentCalls:
m_Calls: []
Port: 7777
HashCashBits: 18
SendWindowSize: 32
ReceiveWindowSize: 8192
delayMode: 0
--- !u!114 &69965674
MonoBehaviour:
Expand Down

0 comments on commit 1580627

Please sign in to comment.