com.unity.services.multiplayer 2.5.0
com.unity.services.multiplayer
Source docsNotes: processedReleased November 16, 2026
Browse versions
PreviousNext
Download Options
Direct package downloads captured from Unity's package registry.
Unity Compatibility
Minimum Unity: 6000.0
Package Dependencies
- com.unity.collections (2.6.8)
- com.unity.modules.unitywebrequest (1.0.0)
- com.unity.nuget.newtonsoft-json (3.2.2)
- com.unity.services.authentication (3.9.0)
- com.unity.services.core (1.19.0)
- com.unity.services.deployment (1.8.0)
- com.unity.services.qos (1.5.1)
- com.unity.services.wire (1.5.1)
- com.unity.transport (2.7.4)
Features
- `ServerSessionConnector`, a ScriptableObject in the server assembly that creates a session from a dedicated server, publishes its configured session properties, and assigns the session to a `MultiplayerSession`. Create it from **Assets > Create > Services > Multiplayer > Server Session Connector**. Session properties are authored in the Inspector or from code with `WithSessionProperty` and `WithoutSessionProperty`, and read back as `SessionProperty` values through `SessionProperties`. A Direct or Relay network starts with the session; with the network type set to None, the session is created without one. A new connector's Direct network listens on all interfaces, and an empty publish address publishes this machine's first LAN IPv4 address; set an explicit address for internet hosting.
- `ServerSessionConnectorBehaviour`, which runs a `ServerSessionConnector` once the server is authorized, unless Multiplayer Roles marks the instance as Client only, and, when the connector's network type is None, starts and stops its own Direct or Relay network with `StartNetwork` and `StopNetwork`; a Relay network started this way uses the default Relay protocol. Configure that network in the Inspector's Manual Network section, or with `WithDirectNetworkOptions` and `WithRelayNetworkOptions`. In Play mode, its Inspector's Execute Connector button runs the connector when no session exists yet, and the section's Start Network and Stop Network buttons follow the created session's network state; a disabled button's tooltip gives the reason.
- The Server Session Connector Behaviour inspector shows the services environment its session is created in when playing in the Editor, including one set by a Services Initialization component, and warns when that is the project's default environment, none is selected, or the name does not exist.
- In the Server Session Connector and Server Session Connector Behaviour inspectors, an empty Direct publish address shows the LAN address it resolves to. The behaviour's Manual Network section also has a button that fills that address in.
- Added Unity services CLI commands for Multiplayer Services, available when com.unity.pipeline is installed.
- The `configure_session_connector` CLI command sets a Session Connector asset's connector type, session handle, session id (`session-id`, for CreateOrJoin), join code or session id (`join-code`, `join-session-id`, for Join) and network (`network`: None, Direct or Relay), changing only the arguments given, and saves the asset so Multiplayer Play Mode clones see it. `run_session_connector` runs a Session Connector Behaviour's connector in Play mode and returns the session, optionally setting a join code or session id on the connector first, so a CLI-driven test can host on one instance and join from another without game code. It finds the behaviour by GameObject name or hierarchy path, and refuses to run a connector that is already running or holds a session.
Improvements
- Matchmaker Authoring: when the service rejects a request to read the remote configuration during deploy or refresh, with a 4xx status such as 403, the Deployment window shows "Request rejected by the service" with the status code instead of "Failed to connect". A failed queue upsert or delete no longer stops the deploy; the remaining queues are still deployed and the deploy still fails overall.
Bug Fixes
- Matchmaker: cancelling `MatchmakeSessionAsync` now retries deleting the ticket up to three times and stops acting on ticket status while it does, so a match found during the cancel is no longer joined. A ticket the service reports as not found counts as cancelled. If every attempt fails, it throws a `SessionException` with `SessionError.Unknown` that wraps the delete error, instead of `SessionError.MatchmakerCancelled`, and the ticket may stay open for other players to be matched with.
- Matchmaker Authoring: deploying or refreshing the status of a Matchmaker config now reads the file from disk, so edits made outside the Editor are no longer ignored until Unity reimports the file. A f
