Skip to content

Commit 06129b8

Browse files
committed
Fix NetworkObjectReference and NetcodeIntegrationTest
1 parent b11c38c commit 06129b8

File tree

2 files changed

+230
-26
lines changed

2 files changed

+230
-26
lines changed

com.unity.netcode.gameobjects/Runtime/Serialization/NetworkObjectReference.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public ulong NetworkObjectId
2525
/// Creates a new instance of the <see cref="NetworkObjectReference"/> struct.
2626
/// </summary>
2727
/// <param name="networkObject">The <see cref="NetworkObject"/> to reference.</param>
28-
/// <exception cref="ArgumentException"></exception>
28+
/// <exception cref="ArgumentException">Thrown if the <see cref="NetworkObject"/> is not spawned.</exception>
2929
public NetworkObjectReference(NetworkObject networkObject)
3030
{
3131
if (networkObject == null)
@@ -46,7 +46,7 @@ public NetworkObjectReference(NetworkObject networkObject)
4646
/// Creates a new instance of the <see cref="NetworkObjectReference"/> struct.
4747
/// </summary>
4848
/// <param name="gameObject">The GameObject from which the <see cref="NetworkObject"/> component will be referenced.</param>
49-
/// <exception cref="ArgumentException"></exception>
49+
/// <exception cref="ArgumentException">Thrown if the GameObject does not have a <see cref="NetworkObject"/> component or if the <see cref="NetworkObject"/> is not spawned.</exception>
5050
public NetworkObjectReference(GameObject gameObject)
5151
{
5252
if (gameObject == null)

0 commit comments

Comments
 (0)