You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: com.unity.netcode.gameobjects/CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
20
20
### Removed
21
21
22
22
### Fixed
23
-
23
+
- Fixed issue where `NetworkObject.Observers` was not being cleared when despawned. (#2009)
24
24
- Fixed `NetworkAnimator` could not run in the server authoritative mode. (#2003)
25
25
- Fixed issue where late joining clients would get a soft synchronization error if any in-scene placed NetworkObjects were parented under another `NetworkObject`. (#1985)
26
26
- Fixed issue where `NetworkBehaviourReference` would throw a type cast exception if using `NetworkBehaviourReference.TryGet` and the component type was not found. (#1984)
Assert.False(s_GlobalTimeoutHelper.TimedOut,$"Timed out waiting for all clients to receive message!\n"+
159
+
$"Clients that received the message:{m_ServerRpcObserverObject.GetClientIdsAsString()}");
160
+
Assert.False(m_ServerRpcObserverObject.NonObserversReceivedRPC(nonObservers),$"Non-observers ({m_ServerRpcObserverObject.GetClientIdsAsString(nonObservers)}) received the RPC message!");
Assert.True(m_ServerRpcObserverObject.NetworkObject.Observers.Count==0,$"Despawned {m_ServerRpcObserverObject.name} but it still has {m_ServerRpcObserverObject.NetworkObject.Observers.Count} observers!");
Assert.False(s_GlobalTimeoutHelper.TimedOut,$"Timed out waiting for all clients to receive message!\n"+
178
+
$"Clients that received the message:{m_ServerRpcObserverObject.GetClientIdsAsString()}");
179
+
Assert.False(m_ServerRpcObserverObject.NonObserversReceivedRPC(nonObservers),$"Non-observers ({m_ServerRpcObserverObject.GetClientIdsAsString(nonObservers)}) received the RPC message!");
180
+
181
+
// Always verify the host received the RPC
182
+
if(m_UseHost)
183
+
{
184
+
Assert.True(m_ServerRpcObserverObject.HostReceivedMessage,$"Host failed to receive the ClientRpc with the following observers: {m_ServerRpcObserverObject.GetClientIdsAsString()}!");
0 commit comments