You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mppm/player-tags/target-instance.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,20 @@ title: Use Player Tags to run a player as a server, client, or host
4
4
description: This example shows how you can use Netcode for GameObjects to run a Player as a server, client, or host in Multiplayer Play Mode.
5
5
---
6
6
7
-
This example explains how to target **Player Tags** in your game scripts with `CurrentPlayer.ReadOnlyTags()`. You can place these scripts where you want, but you must attach the scripts to a [NetworkObject](https://docs-multiplayer.unity3d.com/netcode/current/basics/networkobject/)(such as the **Player**).
7
+
This example explains how to target **Player Tags** in your game scripts with `CurrentPlayer.ReadOnlyTags()`. You can place these scripts where you want, but you must attach the scripts to a [NetworkObject](https://docs-multiplayer.unity3d.com/netcode/current/basics/networkobject/)(such as the **Player**).
8
8
9
-
You can also use the dedicated server package to set a player tag to server, client, or host. For more information, refer to ()[###LINK###].
9
+
You can also use the dedicated server package to set a player tag to server, client, or host. For more information, refer to [Use Multiplayer Play Mode with a Dedicated Server](../dedicated-server/play-mode-dedicated-server.md).
10
10
11
11
## Set a player tag to server, client, or host in a script
12
12
13
-
The following script uses the Netcode for GameObjects (NGO) [NetworkManager](https://docs-multiplayer.unity3d.com/netcode/current/components/networkmanager/) to automatically connect the Virtual Player as a server, client, or host based on their Player Tag. A Player with the `Server` Player Tag automatically runs as a server, and a Player with the `Client` Player Tag automatically runs as a client.
13
+
The following script uses the Netcode for GameObjects [NetworkManager](https://docs-multiplayer.unity3d.com/netcode/current/components/networkmanager/) to automatically connect the Virtual Player as a server, client, or host based on their Player Tag. A Player with the `Server` Player Tag automatically runs as a server, and a Player with the `Client` Player Tag automatically runs as a client.
14
14
15
15
:::important
16
-
This example uses the `Contains` method which is case-sensitive by default. To make it case-insensitive, pass the `System.StringComparison.CurrentCultureIgnoreCase` method.
16
+
This example uses the `Contains` method, which is case-sensitive by default. To make it case-insensitive, pass the `System.StringComparison.CurrentCultureIgnoreCase` method.
17
17
:::
18
18
19
19
:::note
20
-
This example uses [Netcode for GameObjects (NGO)](https://docs-multiplayer.unity3d.com/netcode/current/about/).
20
+
This example uses [Netcode for GameObjects](https://docs-multiplayer.unity3d.com/netcode/current/about/).
0 commit comments