Skip to content

Commit 2001f4e

Browse files
PVP
Adding API documentation due to PVP error.
1 parent 64d50f5 commit 2001f4e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

com.unity.netcode.gameobjects/Tests/Runtime/NetworkShowHideTests.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,12 @@ private bool OwnershipHasChanged()
645645
return m_NewOwner.SpawnManager.SpawnedObjects[m_ObjectId].OwnerClientId == m_NewOwner.LocalClientId;
646646
}
647647

648-
648+
/// <summary>
649+
/// Validates when invoking NetworkObject.NetworkShow and NetworkObject.ChangeOwnership
650+
/// back-to-back it will not attempt to send a change ownership message since the visibility
651+
/// message (CreateObjectMessage) is deferred until the end of the frame.
652+
/// </summary>
653+
/// <returns>IEnumerator</returns>
649654
[UnityTest]
650655
public IEnumerator NetworkShowAndChangeOwnership()
651656
{

0 commit comments

Comments
 (0)