We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 392464f commit e1e76dcCopy full SHA for e1e76dc
com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviourUpdater.cs
@@ -51,9 +51,8 @@ internal void AddForUpdate(NetworkObject networkObject)
51
[MethodImpl(MethodImplOptions.AggressiveInlining)]
52
internal void ProcessDirtyObjectServer(NetworkObject dirtyObj, bool forceSend)
53
{
54
- for (int i = 0; i < m_ConnectionManager.ConnectedClientsList.Count; i++)
+ foreach (var client in m_ConnectionManager.ConnectedClientsList)
55
56
- var client = m_ConnectionManager.ConnectedClientsList[i];
57
if (m_NetworkManager.DistributedAuthorityMode || dirtyObj.IsNetworkVisibleTo(client.ClientId))
58
59
// Sync just the variables for just the objects this client sees
0 commit comments