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 64d50f5 commit 2001f4eCopy full SHA for 2001f4e
com.unity.netcode.gameobjects/Tests/Runtime/NetworkShowHideTests.cs
@@ -645,7 +645,12 @@ private bool OwnershipHasChanged()
645
return m_NewOwner.SpawnManager.SpawnedObjects[m_ObjectId].OwnerClientId == m_NewOwner.LocalClientId;
646
}
647
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>
654
[UnityTest]
655
public IEnumerator NetworkShowAndChangeOwnership()
656
{
0 commit comments