# Multiplayer

> Create and manage multiplayer experiences using Unity's integrated suite of services.

# Multiplayer Services SDK

- [Overview](https://docs.unity.com/en-us/mps-sdk.md): Create and manage multiplayer experiences using Unity's integrated suite of services.

## Get started

- [Get started](https://docs.unity.com/en-us/mps-sdk/get-started.md): Learn the different methods to add sessions-based multiplayer functionality to your game.
- [Install the SDK](https://docs.unity.com/en-us/mps-sdk/install-and-upgrade.md): Install the Multiplayer Services package, and standalone multiplayer SDKs to the unified Multiplayer Services SDK.
- [Migrate to the Multiplayer SDK](https://docs.unity.com/en-us/mps-sdk/migration-path.md): Transfer from the individual services' SDKs to the unified Multiplayer Services SDK.
- [Billing](https://docs.unity.com/en-us/mps-sdk/mps-billing.md): Understand how Multiplayer Services bills for resource usage and charges.

## Use multiplayer sessions

- [Use multiplayer sessions](https://docs.unity.com/en-us/mps-sdk/use-sessions-toc.md): Guides and information on how to implement multiplayer sessions in your game.
- [Introduction to multiplayer sessions](https://docs.unity.com/en-us/mps-sdk/sessions-overview.md): Learn how multiplayer sessions manage connected players, session ownership, and game state in Unity Multiplayer Services.

### Integrate multiplayer sessions

- [Integrate multiplayer sessions](https://docs.unity.com/en-us/mps-sdk/sessions.md): Learn how multiplayer sessions manage connected players, session ownership, and game state in Unity Multiplayer Services.
- [Initialize UGS and authenticate the player](https://docs.unity.com/en-us/mps-sdk/init-ugs.md): Initialize Unity Gaming Services in your project, and authenticate the player to prepare for multiplayer functionality.
- [Create a session](https://docs.unity.com/en-us/mps-sdk/create-session.md): Configure session options and choose network connection types to add multiplayer support to your project.
- [Create sessions in the Editor](https://docs.unity.com/en-us/mps-sdk/scriptableobject-sessions.md): Create a session in the Unity Editor using ScriptableObjects.
- [Find and join a session](https://docs.unity.com/en-us/mps-sdk/join-session.md): Implement ways for joining multiplayer sessions by entering a join code, browsing available sessions, or reconnecting after a disconnection.

#### Matchmaking

- [Matchmaking](https://docs.unity.com/en-us/mps-sdk/matchmake-session.md): Find and join the most suitable multiplayer sessions for a given player using matchmaking.
- [Match make with the Quick Join API](https://docs.unity.com/en-us/mps-sdk/matchmake-lobby.md): Quickly match make players using Lobby's Quick Join.
- [Advanced matchmaking](https://docs.unity.com/en-us/mps-sdk/adv-matchmaking.md): Use additional rules and parameters to matchmake players on multiple variables.
- [Migrate session host](https://docs.unity.com/en-us/mps-sdk/session-host-migration.md): Learn about changing session ownership, including host election and data migration.
- [Leave a session](https://docs.unity.com/en-us/mps-sdk/leave-a-session.md): Learn how players can leave a session and what happens when they exit.
- [Get a list of joined sessions](https://docs.unity.com/en-us/mps-sdk/get-joined-lobbies.md): Retrieve a list of all sessions that the current player has joined.
- [Delete a session](https://docs.unity.com/en-us/mps-sdk/delete-a-session.md): Permanently delete a session to remove it from the system and disconnect all players.
- [Session configuration options](https://docs.unity.com/en-us/mps-sdk/config-options.md): Learn about available configuration options and their default values.
- [Game server hosting support](https://docs.unity.com/en-us/mps-sdk/game-server-hosting-support.md): Integrate different hosting solutions using Cloud Code modules to manage servers.

## Manage sessions

- [Manage sessions](https://docs.unity.com/en-us/mps-sdk/manage-sessions-toc.md): Learn how to manage lifecycle events and information for sessions.
- [View sessions](https://docs.unity.com/en-us/mps-sdk/sessions/view-sessions.md): Review a list of live sessions in the Unity dashboard.
- [Lobby events](https://docs.unity.com/en-us/mps-sdk/lobby-events.md): Subscribe to real-time lobby events to receive updates when lobby or player state changes occur.
- [Session states](https://docs.unity.com/en-us/mps-sdk/session-states.md): Reference the lifecycle states a session can be in while it's created, connected, and removed.
- [Rate limits](https://docs.unity.com/en-us/mps-sdk/rate-limits.md): Understand request rate limits to help control your implementation's network traffic.

### Information management in sessions

- [Information management in sessions](https://docs.unity.com/en-us/mps-sdk/mps-data-toc.md): Learn how to manage and propagate data changes in sessions.
- [Session data and player data](https://docs.unity.com/en-us/mps-sdk/session-data-and-player-data.md): Learn how session and player data are structured and used in Unity Multiplayer Services
- [Session properties](https://docs.unity.com/en-us/mps-sdk/session-properties.md): Understand the data stored in a session, which fields are managed by the SDK, and which fields you set as the host or application.
- [Update session data](https://docs.unity.com/en-us/mps-sdk/update-session-data.md): Modify session data and properties to reflect changes in game state or session configuration.
- [Update player data](https://docs.unity.com/en-us/mps-sdk/update-player-data.md): Modify player-scoped custom data within a session to track individual player states and preferences.
- [Manage properties as a host](https://docs.unity.com/en-us/mps-sdk/session-op-host.md): Manage your sessions with the operations available to you as a session host.
- [Manage properties as a client](https://docs.unity.com/en-us/mps-sdk/session-op-client.md): Manage your sessions with the operations available to you as a session client.
- [Synchronize player names in a session](https://docs.unity.com/en-us/mps-sdk/player-name-integration-session.md): Expose and read player display names as session player properties so all players can view each other's names.
- [Access control](https://docs.unity.com/en-us/mps-sdk/access-control.md): Configure visibility and access permissions to control who can discover and join your sessions.
- [Session error messages](https://docs.unity.com/en-us/mps-sdk/lobby-error-messages.md): Reference common session service error codes and messages to troubleshoot integration issues.

## Connect players through a relay

- [Connect players through a relay](https://docs.unity.com/en-us/mps-sdk/connect-players.md): Learn how to connect players securely using the Relay service without dedicated game servers.
- [Relay servers](https://docs.unity.com/en-us/mps-sdk/networking/relay-servers.md): Understand how Relay servers facilitate message delivery between players without exposing their addresses.
- [Players](https://docs.unity.com/en-us/mps-sdk/players.md): Learn the roles and responsibilities of host and joining players in Relay sessions.
- [Relay integrations](https://docs.unity.com/en-us/mps-sdk/networking/relay-integration.md): Integrate Unity Relay with Lobby to enable synchronized disconnects and secure peer-to-peer communication between players.
- [Fair usage](https://docs.unity.com/en-us/mps-sdk/networking/fair-usage.md): Understand which use cases are appropriate for the Relay service.
- [Limitations](https://docs.unity.com/en-us/mps-sdk/relay-limitations.md): Understand the constraints and boundaries of the Relay service.

## Networking

- [Networking](https://docs.unity.com/en-us/mps-sdk/networking/networking-toc.md): Learn about the multiple protocols that Relay supports for multiplayer communication.
- [Ports and protocols](https://docs.unity.com/en-us/mps-sdk/networking/ports.md): Required ports and protocols for using the Relay service.
- [Locations and regions](https://docs.unity.com/en-us/mps-sdk/networking/locations-and-regions.md): Explore the available Relay regions, and learn how to select the best one for your players.
- [Quality of service](https://docs.unity.com/en-us/mps-sdk/networking/qos.md): Use Quality of Service (QoS) measurements to automatically select the best Relay region for your players.
- [Scaling](https://docs.unity.com/en-us/mps-sdk/networking/scaling.md): Learn how the Multiplayer Services SDK automatically scales to meet user demand without additional cost.

### DTLS encryption

- [DTLS encryption](https://docs.unity.com/en-us/mps-sdk/networking/dtls-encryption.md): Learn how Datagram Transport Layer Security (DTLS) encryption protects Relay communication.
- [Enable DTLS encryption](https://docs.unity.com/en-us/mps-sdk/networking/enable-dtls-encryption.md): Configure your Relay client to use Datagram Transport Layer Security for encrypted connections.

### Advanced configuration

- [Advanced configuration](https://docs.unity.com/en-us/mps-sdk/advanced-config/advanced-configuration.md): Interact with the underlying Relay API for more advanced configurations and setups.
- [Relay allocation service](https://docs.unity.com/en-us/mps-sdk/advanced-config/allocation-service.md): Learn how the Allocations service manages a host and joining players to sessions.
- [Relay allocating, binding, and joining](https://docs.unity.com/en-us/mps-sdk/advanced-config/allocating-binding-joining.md): Understand the three distinct steps for establishing a Relay connection between players.
- [Relay vs Lobby](https://docs.unity.com/en-us/mps-sdk/advanced-config/relay-vs-lobby.md): Understand the differences between Relay and Lobby services and when to use each.
- [Relay message protocol](https://docs.unity.com/en-us/mps-sdk/advanced-config/relay-message-protocol.md): Understand how the Relay message protocol transmits data between clients and servers in the Relay service.
- [Connection flow](https://docs.unity.com/en-us/mps-sdk/advanced-config/connection-flow.md): Connect players through the Allocations service and Relay servers.
- [Relay REST API](https://docs.unity.com/en-us/mps-sdk/advanced-config/relay-rest-api.md): Access Relay functionality through web endpoints for non-Unity developers.
- [Manually configure Relay with Netcode for GameObjects](https://docs.unity.com/en-us/mps-sdk/tutorials/relay-and-ngo.md): Integrate Relay with Netcode for GameObjects using the unified Multiplayer Services SDK.

## Matchmaking

- [Matchmaking](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-toc.md): Use Matchmaker to connect players, create matches, and manage matchmaking workflows for multiplayer games.

### Get started with matchmaking

- [Get started with matchmaking](https://docs.unity.com/en-us/mps-sdk/matchmaking/get-started-mm.md): Install and set up Matchmaker and create your first matching ticket.
- [Matchmaking ticket flow](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-ticket-flow.md): Understand how tickets move from creation through matching to server allocation.
- [Authentication](https://docs.unity.com/en-us/mps-sdk/matchmaking/authentication.md): Use authentication in Matchmaker to securely identify and authorize players.
- [Matchmaking rate limits](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-rate-limits.md): Review the rate limits and configuration restrictions that apply to the Matchmaker service.
- [Queues and pools](https://docs.unity.com/en-us/mps-sdk/matchmaking/queues-pools.md): Control how matchmaking tickets are grouped, filtered, and matched in your game with queues and pools.
- [Matchmaker hosting providers](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-hosting-providers.md): Integrate your preferred game server hosting provider using Cloud Code modules.
- [Matchmake to a local server](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-local-server.md): Use a Cloud Code allocator module to match players to a server running on your own machine during development.

### Manage and configure matchmaking

- [Manage and configure matchmaking](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-config-toc.md): Learn how to configure matchmaking rules, Quality of Service, player segmentation, backfill, and party matchmaking behavior.
- [Matchmaking rules](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-rules.md): Create rules that control how players are matched together based on their custom data and Quality of Service results.
- [Matchmaking rule relaxation](https://docs.unity.com/en-us/mps-sdk/matchmaking/rule-relaxations.md): Relax matching rules over time to speed up match creation when player populations are low.
- [Matchmaking with Quality of Service](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-qos.md): Use Quality of Service results to match players in regions with acceptable connection quality.
- [Player segmentation](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-player-segmentation.md): Divide players into separate pools based on game modes and custom attributes to optimize matching.
- [Matchmaker backfill](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-backfill.md): Allow players to join matches that have already started and keep servers full as players leave.
- [Matchmaking rule samples](https://docs.unity.com/en-us/mps-sdk/matchmaking/matchmaking-rule-samples.md): Apply example matching rules for common game scenarios like one-versus-one, team-based, and asymmetrical matches.
- [Matchmaker A/B testing](https://docs.unity.com/en-us/mps-sdk/matchmaking/ab-testing.md): Test and optimize matchmaking configurations by comparing different rule variants and their performance metrics.

### Matchmaker troubleshooting

- [Matchmaker troubleshooting](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-troubleshooting.md): Resolve common Matchmaker issues and find solutions to error messages.
- [Matchmaker logs](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-logs.md): Learn how Matchmaker logs provide insights into matchmaking activity and help diagnose issues.
- [Integrations with other UGS services](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-integrations.md): Connect Matchmaker with Leaderboards and Game Overrides to enhance your matching capabilities.

### Deploy Matchmaker configurations

- [Deploy Matchmaker configurations](https://docs.unity.com/en-us/mps-sdk/deploy-matchmaker-toc.md): How to build matchmaking into your multiplayer game.
- [Deploy a Matchmaker Environment](https://docs.unity.com/en-us/mps-sdk/deployment/deploy-matchmaker-environment.md): Use the Deployment window in the Unity Editor to deploy a Matchmaker environment.
- [Deploy a Matchmaker Queue](https://docs.unity.com/en-us/mps-sdk/deployment/deploy-matchmaker-queue.md): Use the Deployment window in the Unity Editor to deploy a Matchmaker queue.

## Monitor and debug sessions

- [Monitor and debug sessions](https://docs.unity.com/en-us/mps-sdk/monitor-sessions-toc.md): Monitor and troubleshoot issues that can occur when using multiplayer sessions.
- [Session networking](https://docs.unity.com/en-us/mps-sdk/session-networking.md): Learn how sessions coordinate network setup, startup, and player connection flow for multiplayer games.
- [Network connection management](https://docs.unity.com/en-us/mps-sdk/manage-session-network-connection.md): Understand different network connection types and configuration options available for multiplayer sessions.

### Sessions observability

- [Sessions observability](https://docs.unity.com/en-us/mps-sdk/session-observability.md): Monitor, debug, and respond to multiplayer session and player events using the Sessions Viewer and event APIs.
- [Session Viewer](https://docs.unity.com/en-us/mps-sdk/session-viewer.md): Debug active multiplayer sessions in Play Mode by viewing real-time session information in the Unity Editor.
- [Session Observer](https://docs.unity.com/en-us/mps-sdk/session-observer.md): Track events related to session creation using the SessionObserver class.
- [Session events](https://docs.unity.com/en-us/mps-sdk/session-events.md): Monitor session lifecycle changes by subscribing to these events.
- [Session player events](https://docs.unity.com/en-us/mps-sdk/session-player-events.md): Monitor events related to players' interaction with sessions.
- [Matchmaker session observability](https://docs.unity.com/en-us/mps-sdk/matchmaking/mm-session-observability.md): Monitor and analyze multiplayer session performance through detailed events and session data.
- [Verbose logging in multiplayer games](https://docs.unity.com/en-us/mps-sdk/mp-logs.md): Enable verbose logging in your multiplayer project to troubleshoot issues.

## Tutorials

- [Tutorials](https://docs.unity.com/en-us/mps-sdk/tutorials-toc.md): Session tutorials and party workflow examples for Multiplayer Services.

### Sessions tutorials with Unity Netcode

- [Sessions tutorials with Unity Netcode](https://docs.unity.com/en-us/mps-sdk/build-sessions-landing.md): Use Netcode to build a simple multiplayer game from scratch using sessions.
- [Build a session with Netcode for GameObjects](https://docs.unity.com/en-us/mps-sdk/tutorials/build-your-first-session.md): Build a multiplayer game with sessions using Netcode for GameObjects for projects with GameObject and MonoBehaviour workflows.
- [Build a session with Netcode for Entities](https://docs.unity.com/en-us/mps-sdk/build-with-netcode-for-entities.md): Build a multiplayer game with sessions using Netcode for Entities for projects using Unity's Data-Oriented Technology Stack (DOTS).

## Reference

- [Reference](https://docs.unity.com/en-us/mps-sdk/reference-toc.md): General reference information concerning privacy, term definitions, and extended learning resources.

### Privacy and consent

- [Privacy and consent](https://docs.unity.com/en-us/mps-sdk/privacy/privacy-and-consent.md): Understand privacy requirements and data handling practices for Unity Multiplayer Services on Apple and Google platforms.

#### Lobby

- [Privacy overview for Lobby](https://docs.unity.com/en-us/mps-sdk/privacy/privacy-overview-lobby.md): Learn about privacy and data handling considerations when implementing Unity Lobby in your game.
- [Apple privacy manifest for Lobby](https://docs.unity.com/en-us/mps-sdk/privacy/apple-privacy-manifest-lobby.md): Include a privacy manifest in your iOS app to declare what personal data Unity Lobby collects per Apple's policy.
- [Google Play data safety for Lobby](https://docs.unity.com/en-us/mps-sdk/privacy/google-data-safety-section-for-lobby.md): Declare what personal data Unity Lobby collects in your Google Play data safety form for app store submission.

#### Relay

- [Privacy overview for Relay](https://docs.unity.com/en-us/mps-sdk/privacy/privacy-overview-relay.md): Learn about privacy and data handling considerations when implementing Unity Relay in your game.
- [Apple privacy manifest for Relay](https://docs.unity.com/en-us/mps-sdk/privacy/apple-privacy-manifest-relay.md): Include a privacy manifest in your iOS app to declare what personal data Unity Relay collects per Apple's policy.
- [Google Play data safety for Relay](https://docs.unity.com/en-us/mps-sdk/privacy/google-data-safety-relay.md): Declare what personal data Unity Relay collects in your Google Play data safety form for app store submission.

#### Matchmaker

- [Privacy overview for Matchmaker](https://docs.unity.com/en-us/mps-sdk/privacy/privacy-overview-matchmaker.md): Understand the personal data that Matchmaker collects and how to handle privacy compliance requirements.
- [Apple privacy manifest for Matchmaker](https://docs.unity.com/en-us/mps-sdk/privacy/apple-privacy-manifest-matchmaker.md): Review the data types that Matchmaker declares in its Apple privacy manifest for App Store compliance.
- [Google Play data safety for Matchmaker](https://docs.unity.com/en-us/mps-sdk/privacy/google-data-safety-matchmaker.md): Review the data types that Unity Matchmaker collects for Google Play data safety compliance.
- [Support](https://docs.unity.com/en-us/mps-sdk/support.md): Contact the Matchmaker support team using the Unity Dashboard or community forum.
- [Glossary](https://docs.unity.com/en-us/mps-sdk/glossary.md): Learn the terminology and key concepts used in the Multiplayer Services SDK documentation.
- [Multiplayer Services Building Blocks](https://docs.unity3d.com/Manual/building-blocks-multiplayer.html)
- [Reference](https://docs.unity.com/en-us/mps-sdk/reference.md): Access documentation about the Multiplayer Services SDK and related networking libraries.
