Skip to content

Commit 2f65495

Browse files
style
adding comment and removing extra CR/LF.
1 parent f21d49b commit 2f65495

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.unity.netcode.gameobjects/Runtime/SceneManagement/NetworkSceneManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,8 @@ private void SendSceneEventData(uint sceneEventId, ulong[] targetClientIds)
10811081
}
10821082
else
10831083
{
1084+
// Send to each individual client to assure only the in-scene placed NetworkObjects being observed by the client
1085+
// is serialized
10841086
foreach (var clientId in targetClientIds)
10851087
{
10861088
sceneEvent.TargetClientId = clientId;
@@ -1092,7 +1094,6 @@ private void SendSceneEventData(uint sceneEventId, ulong[] targetClientIds)
10921094
NetworkManager.NetworkMetrics.TrackSceneEventSent(clientId, (uint)sceneEvent.SceneEventType, SceneNameFromHash(sceneEvent.SceneHash), size);
10931095
}
10941096
}
1095-
10961097
}
10971098

10981099
/// <summary>

0 commit comments

Comments
 (0)