Skip to content

Commit 9131863

Browse files
Update com.unity.netcode.gameobjects/Documentation~/components/core/networkobject.md
Co-authored-by: Emma <emma.mcmillan@unity3d.com>
1 parent 891ef03 commit 9131863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Documentation~/components/core/networkobject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ GetComponent<NetworkObject>().SpawnWithOwnership(clientId);
4848
```
4949
> [!NOTE]
5050
> When using the `SpawnWithOwnership` method, be aware that any component that has owner-specific checks to perform specific actions won't be invoked on the spawn authority side during the spawn sequence. The spawn authority is the server when using a client-server network topology, and can be any client when using a distributed authority network topology. Using `SpawnWithOwnership` can impact things like [NetworkTransform](../helper/networktransform.md) when using an owner authority motion model, and potentially provide undesired parenting artifacts and/or impact your own scripts if you are planning to have the spawn authority make any further post-spawn adjustments within the same frame.
51-
> To avoid potential issues, it's recommended to use `Spawn`, where the spawn authority starts as the owner throughout the spawn sequence, makes adjustments post-spawn, and then immediately follow with a call to `ChangeOwnership`.
51+
> To avoid potential issues, it's recommended to use `Spawn` if the spawn authority needs to make any adjustments post-spawn. After adjusting, the spawn authority can immediately follow with a call to `ChangeOwnership`.
5252
5353
To change ownership, use the `ChangeOwnership` method:
5454

0 commit comments

Comments
 (0)