The Unity Transport
com.unity.transport package respository adds multiplayer and network features to your project. See the following changelog for new features, updates, fixes, and upgrade information.
- Changed version to 1.0.0.
- Don't warn when overwriting settings in
NetworkSettings(e.g. when calling the same
- Added new methods to set security parameters:
NetworkSettings.WithSecureServerParameters. These replace the existing
WithSecureParameters, which is now obsolete.
- Updated Collections dependency to 1.2.3.
- Fixed client certificate not being passed to UnityTLS on secure connections. This prevented client authentication from properly working.
- Fixed: Reliable pipeline drop statistics inaccurate.
- An error is now logged if failing to decrypt a DTLS message when using Relay.
- Decreased default Relay keep-alive period to 3 seconds (was 9 seconds). The value can still be configured through the
- Updated Relay sample to the most recent Relay SDK APIs (would fail to compile with latest packages).
IValidatableNetworkParameter.Validate()method is now part of
- Fixed compilation on WebGL. Note that the platform is still unsupported, but at least including the package in a WebGL project will not create compilation errors anymore. Creating a
NetworkDriverin WebGL projects will now produce a warning.
- When using the Relay protocol, error messages sent by the Relay server are now properly captured and logged.
- Fixed: Issue where an overflow of the
ReliableSequencedPipelineStagesequence numbers would not be handled properly.
- Clean up changelog for package promotion.
- Updated to Burst 1.6.4.
- Updated to Mathematics 1.2.5.
- Documentation has been moved to the offical multiplayer documentation site.
- Fixed a division by zero in
- Don't warn when receiving repeated connection accept messages (case 1370591).
- Fixed an exception when receiving a data message from an unknown connection.
- On fragmented and reliable pipelines, sending a large packet when the reliable window was almost full could result in the packet being lost.
- Fixed "pending sends" warning being emitted very often when sending to remote hosts.
- Revert decrease of MTU to 1384 on Xbox platforms (now back at 1400). It would cause issues for cross-platform communications.
- Disabled Roslyn Analyzers provisionally
- Fixed: Compiler error due to Roslyn Analyzers causing a wrong compiler argument
- Creating a pipeline with
ReliableSequencedPipelineStageis now forbidden (will throw an exception if collections checks are enabled). That order never worked properly to begin with. The reverse order is fully supported and is the recommended way to configure a reliable pipeline with support for large packets.
NetworkSettingsstruct and API for defining network parameters.
- Added Roslyn Analyzers for ensuring proper extension of NetworkParameters and NetworkSettings API.
- Update Collections package to 1.1.0
- Fixed: Error message when scheduling an update on an unbound
BeginSendwouldn't return an error if the required payload size was larger than the supported payload size when close to the MTU
- Fixed: Removed boxing in
NetworkDriverinitialization by passing
NetworkSettingsparameter instead of
- Fixed a crash on XboxOne(X/S) when using the fragmentation pipeline (case 1370473)
INetworkInterfaceinitialization methods now receive a
NetworkSettingsparameter instead of
- Some public APIs that should have always been internal are now internal (
- Fixed: Couldn't send a payload of the configured payload size on fragmented pipelines
- Added heartbeats functionality to all protocols (enabled by default). If there's no traffic on a connection for some time, a heartbeat is automatically sent to keep the connection alive. The inactivity timeout is controlled by the new parameter
NetworkConfigParameter. Setting it to 0 disables the feature.
NetworkConfigParameterto support heartbeats (see above).
NetworkDriver.Bindis now synchronous when using Relay (matches behavior of other protocols).
NetworkDriver.Bindis not required to be called anymore for Relay clients (only for host).
EndSendwill now return an error if called with a writer that has failed writes.
- MTU decreased to 1384 (from 1400) on Xbox platforms.
Connectwill automatically bind the driver if not already bound. This was already done implicitly before, but now it's explicit (the
NetworkDriver.Boundproperty will be true after a successful call to
- Fixed: Receiving a Disconnect message on DTLS would crash the receive job
- Fixed: TLS server name might be set to nothing in Relay+DTLS, causing the handshake to fail
- Fixed: Couldn't send large messages on fragmented pipeline if
requiredPayloadSizewas not provided to
- Fixed: DTLS handshake messages were never resent if lost
- Fixed: Clients wouldn't honor the endpoint their were bound to
- Function pointers (for instance in
EndSend) generate GC allocations in non-Burst use cases. The issue will be fixed in the next releases
- XboxOne(S/X) crash when using fragmentation pipeline when the size of the packet is within 100 bytes of the MTU. This will be fixed in the next release
- Fixed: Socket never created on unbound DTLS clients (causes handshake to fail)
- Fixed: When using DTLS it would not properly read data packets
- Fixed: When using DTLS it could possibly fail to send a packet that was at the MTU size.
- Fixed: Updated collection types in
- Fixed: Fixed race condition between UTP and Relay disconnects
- Fixed: Relay not being able to use the fragmentation pipelinestage
- Removed references of TransportSamples from readme as they are not currently included in the package
- Stripping out un-needed files from the package
- Upgraded collections to 1.0.0-pre.5
- Added support for Secure Protocol while using Unity Relay
- Moving into pre-release
- Added Secure Protocol support (TLS/DTLS) to allow for encrypted and secure connections.
- Unity Transport package now supports connecting to the Unity Relay Service. See Unity Relay for more information.
- Upgraded burst to 1.5.5
- Added support for long serialization and delta compression.
- Upgraded collections to 1.0.0-pre.1
- Added a new network interface for WebSockets, can be used in both native and web builds.
- Minimum required Unity version has changed to 2020.3.0f1.
- The transport package can be compiled with the tiny c# profile and for WebGL, but WebGL builds only support IPC - not sockets.