Version: 0.6.0
Create tags
Tags are similar to launch arguments for Players (both the main Editor Player and Virtual Players) that you can use to configure Players to do things such as:
- Run as a client, server, or host automatically
- Automatically run as a member of a specific team (for example, “Red Team” or “Blue Team”)
- Move faster or slower to simulate their network connection
Using tags involves the following parts:
Create a tag
To create a tag,
- In the Unity Editor, open the MPPM window by navigating to Window > Multiplayer Play Mode.
- Select the plus sign under Player Tags to create your new tag.
- Name the tag.
- Select Save. Your new tag is automatically added to the
VirtualProjectsConfig.json
file in theProjectsSettings
folder. - Your new tag should also appear under the Player Tags section of the MPPM window and in the dropdown menu for the Tag option of each Player.
Next Steps
Without configuration, Tags don't do anything. You must target tags in your game scripts with CurrentPlayer.ReadOnlyTags()
. Refer to the following tag examples as guides for your own scripts: