> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class PlayFabMultiplayerManager

> Reference for the PlayFabMultiplayerManager class in the Party Unity SDK, the singleton that manages Party networks, chat, and data messaging for a game.

## Properties

| Name                                                                                                                                                             | Description                                                                                                                           |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| [LocalPlayer](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunitylocalplayer)           | Gets the local player for this client.                                                                                                |
| [LogLevel](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunityloglevel)                 | Gets and sets the amount of logging currently enabled.                                                                                |
| [NetworkId](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunitynetworkid)               | Returns NetworkID of the current network to which the player is connected. The other players can use this string to join the network. |
| [RemotePlayers](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunityremoteplayers)       | Gets the collection of remote players currently joined to the network.                                                                |
| [SpeechToTextMode](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunityspeechtotextmode) | Gets or sets whether speech-to-text is enabled.                                                                                       |
| [State](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunitystate)                       | Gets the current state of the multiplayer manager.                                                                                    |
| [TextToSpeechMode](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunitytexttospeechmode) | Gets or sets whether text-to-speech is enabled.                                                                                       |
| [TranslateChat](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunitytranslatechat)       | Gets or sets whether incoming chat messages should be translated to local player's language.                                          |

## Methods

| Name                                                                                                                                                                                | Description                                                                                                                                                                                                              |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [SendChatMessage](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/partyunitysendchatmessage)                           | Sends a chat message to a specific list of players (recipients).                                                                                                                                                         |
| [SendChatMessageToAllPlayers](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/partyunitysendchatmessagetoallplayers)   | Broadcasts a text message to all players. This API sends a message such that it is guaranteed to arrive and in sequential order.                                                                                         |
| [CreateAndJoinNetwork](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunitycreateandjoinnetwork)               | Creates a network for players to join. After the player joins the network, they can send the other players that are on the network chat and data messages.                                                               |
| [Get](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityget)                                                 | Returns a reference to the PlayFabMultiplayerManager singleton instance.                                                                                                                                                 |
| [JoinNetwork](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunitycreateandjoinnetwork)                        | Joins this player to the specified network.                                                                                                                                                                              |
| [LeaveNetwork](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityleavenetwork)                               | Causes the local player to leave the network.                                                                                                                                                                            |
| [ResetParty](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityresetparty)                                   | Leaves Network, cleans up and re-initializes all resources related to Party and the corresponding PlayFabMultiplayerManager object. If the object was connected to a network, attempts to reconnect to the same network. |
| [Resume](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityresume)                                           | When the app is resumed, re-initializes Party and all resources of PlayFabMultiplayerManager object.                                                                                                                     |
| [SendDataMessage](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunitysenddatamessage)                         | Sends a data message to the specified players using the specified delivery options. The most advanced method for sending data messages, allowing the developer more control over how the message is sent.                |
| [SendDataMessageToAllPlayers](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunitysenddatamessagetoallplayers) | Broadcasts a data message to all players.                                                                                                                                                                                |
| [Suspend](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunitysuspend)                                         | During app suspension, suspends execution of Party and immediately reclaims all resources associated with the PlayFabMultiplayerManager object.                                                                          |
| [UpdateEntityToken](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityupdateentitytoken)                     | Updates the Entity token for the current local user.                                                                                                                                                                     |

## Events

| Name                                                                                                                                                                             | Description                                                                                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [OnChatMessageReceived](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityonchatmessagereceived)             | Occurs when a chat message is received.                                                                                                                                            |
| [OnDataMessageReceived](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityondatamessagereceived)             | Occurs when a data message is received.                                                                                                                                            |
| [OnDataMessageNoCopyReceived](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityondatamessagenocopyreceived) | Occurs when a data message is received.                                                                                                                                            |
| [OnErrorEventHandler](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityonerroreventhandler)                 | Occurs when there is an error.                                                                                                                                                     |
| [OnNetworkChanged](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityonnetworkchanged)                       | Occurs when the Network changes. When this event fires you must move all the players to the new network, specified in the newNetworkID so the players can continue to communicate. |
| [OnNetworkJoined](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityonnetworkjoined)                         | Occurs when the local player joins the network.                                                                                                                                    |
| [OnNetworkLeft](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityonnetworkleft)                             | Occurs when the local player leaves the network.                                                                                                                                   |
| [OnRemotePlayerJoined](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityonremoteplayerjoined)               | Occurs when a remote player joins the network.                                                                                                                                     |
| [OnRemotePlayerLeft](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/events/partyunityonremoteplayerleft)                   | Occurs when a remote player leaves the network.                                                                                                                                    |


## Related topics

- [Class PlayFabMultiplayerManager](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/index.md)
- [PlayFabMultiplayerManager.Get](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/methods/playfabunityget.md)
- [PlayFabMultiplayerManager.State](/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/properties/playfabunitystate.md)
- [PlayFabMultiplayerManager 类](/zh-CN/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/index.md)
- [Clase PlayFabMultiplayerManager](/es/services/playfab/multiplayer/networking/unity-party-api-reference/classes/playfabmultiplayermanager/index.md)
