From 05070b6e23d0cdb240e1404d8abc05750accbc18 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Wed, 26 Mar 2025 15:31:51 -0500 Subject: [PATCH 1/2] fix correcting the xml api documentation for OnGainedOwnership. --- com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs b/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs index 29cbff8d2e..a9cbc2abd8 100644 --- a/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs +++ b/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs @@ -826,7 +826,7 @@ internal void InternalOnNetworkDespawn() /// /// In client-server contexts, this method is invoked on both the server and the local client of the owner when ownership is assigned. - /// In distributed authority contexts, this method is only invoked on the local client that has been assigned ownership of the associated . + /// In distributed authority contexts, this method is invoked on all clients connected to the session./>. /// public virtual void OnGainedOwnership() { } From 4b2d4d2ba52fbe34af579e7c53aeb4d46be5c436 Mon Sep 17 00:00:00 2001 From: NoelStephensUnity Date: Wed, 26 Mar 2025 15:32:44 -0500 Subject: [PATCH 2/2] update fixing xml api documentation for OnLostOwnership --- .../Runtime/Core/NetworkBehaviour.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs b/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs index a9cbc2abd8..1f98d0b840 100644 --- a/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs +++ b/com.unity.netcode.gameobjects/Runtime/Core/NetworkBehaviour.cs @@ -826,7 +826,7 @@ internal void InternalOnNetworkDespawn() /// /// In client-server contexts, this method is invoked on both the server and the local client of the owner when ownership is assigned. - /// In distributed authority contexts, this method is invoked on all clients connected to the session./>. + /// In distributed authority contexts, this method is invoked on all clients connected to the session. /// public virtual void OnGainedOwnership() { } @@ -863,7 +863,7 @@ internal void InternalOnOwnershipChanged(ulong previous, ulong current) /// /// In client-server contexts, this method is invoked on the local client when it loses ownership of the associated /// and on the server when any client loses ownership. - /// In distributed authority contexts, this method is only invoked on the local client that has lost ownership of the associated . + /// In distributed authority contexts, this method is invoked on all clients connected to the session. /// public virtual void OnLostOwnership() { }