Skip to content

Commit f981076

Browse files
robin3a5Larah Armstrong
and
Larah Armstrong
authored
Update networkobject.md (#860)
Co-authored-by: Larah Armstrong <[email protected]>
1 parent 535a2e9 commit f981076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basics/networkobject.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ NetworkManager.Singleton.ConnectedClients[clientId].PlayerObject;
102102
To find your own player object just pass `NetworkManager.Singleton.LocalClientId` as the clientId in the sample above.
103103

104104
### Network Prefabs
105-
Network prefabs (NetworkPrefabs) are prefabs that contain a GameObject with a `NetworkObject` component. As an example, if you wanted to create a prefab to be the default player prefab, then you would create a prefab that at the root GameObject included a `NetworkObject` component and any additional player specific `NetworkBehabiour` components. You can then assign that prefab to the `NetworkManager` Player Prefab property to be used when a player is connected and approved. Each connected player will have a unique instance spawned on all connected clients (including the server).
105+
Network prefabs (NetworkPrefabs) are prefabs that contain a GameObject with a `NetworkObject` component. As an example, if you wanted to create a prefab to be the default player prefab, then you would create a prefab that at the root GameObject included a `NetworkObject` component and any additional player specific `NetworkBehaviour` components. You can then assign that prefab to the `NetworkManager` Player Prefab property to be used when a player is connected and approved. Each connected player will have a unique instance spawned on all connected clients (including the server).
106106

107107
:::note
108108
You can only have one `NetworkObject` at the root of a prefab. This means do not create prefabs with nested `NetworkObjects`!

0 commit comments

Comments
 (0)