The Unity Transport package (com.unity.transport
) is a low-level networking library for multiplayer game development.
Itâs the underlying protocol of both Netcode for GameObjects and Netcode for Entities, but you can also use it with a custom solution.
Unity Transport seamlessly supports all platforms the Unity Engine supports thanks to a connection-based abstraction layer (built-in network driver) provided over UDP and WebSockets.
You can set up both UDP and WebSockets with or without encryption. The following illustration shows encrypted connections with a closed padlock and unencrypted connections with an open padlock.
You can also use pipelines to leverage additional functionality, such as reliability, packet ordering, and packet fragmentation.
Get started with Unity TransportâSee the Installation guide if youâre new to Unity Transport. If youâre upgrading from a earlier version of Unity Transport, see Migrating from 1.X. Check the Compatibility with Unity Editor versions table to ensure your Editor version is compatible with Transport 2.X or 1.X.
Main Features of Transport 2.0âBased on your Unity Editor Version
Unity Editor Version Transport 1.X Transport 2.X 2020 LTS Yes No 2021 LTS Yes No 2022.2 and LTS Yes Yes Next No YesBased on your Netcode Solution working with Transport
Unity Editor Version Netcode for GameObjects 1.2.0 + Netcode for Entities 1.0.0 + Custom Solutions 2020 LTS Transport 1.X N/A Transport 1.X 2021 LTS Transport 1.X N/A Transport 1.X 2022.2 and LTS Transport 1.X Transport 2.X Transport 2.X Next Transport 2.X Transport 2.X Transport 2.XNext, check out Create a simple client and server and the Unity Transport sample projects.
Requirements for Unity Transport 2.Xâcom.unity.transport
package.note
WebGL only supports Unity Transport WebSocket connections in client mode.
danger
Unity Transport (the com.unity.transport
package) is separate from the NetworkTransport abstraction in Netcode for GameObjects.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4