Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Official Unity transport is now available as a 2.0 pre-release version package !

Discussion in 'Unity Transport' started by JohannRw, Mar 17, 2023.

Thread Status:
Not open for further replies.
  1. JohannRw

    JohannRw

    Unity Technologies

    Joined:
    Jan 26, 2022
    Posts:
    16
    The Transport package is the official network layer used by both Netcode for GameObjects and Netcode for Entities. It is also the gateway to some of the Unity Gaming Services and a seamless way to connect gamers across platforms.

    At the time of writing, the latest version is Transport 2.0.0-pre.7.


    Main Features of Transport 2.0
    • Addition of WebGL: Transport package can now be used for all Unity Engine supported platforms.
    • Transport users now have access to our Websocket transport implementation, with or without TLS. It is supported on every platform as Client or Server and for WebGL as Client only.

    • Players on the go can now benefit from a transparent network migration, typically across cell towers. The feature is currently limited to client side and for UDP transport.

    • We made the integration with Relay more straightforward thanks to a new set of API that are now abstracting some boiler plate code.

    • We added the support for com.unity.logging package. If the package is installed, logs will go through its default logger instead of the classic UnityEngine.Debug mechanism.
    For the exhaustive list of new features, changes and bug fixes, refer to the latest changelog.


    Migration from Transport 1.X to 2.X

    This second iteration of the transport contains some breaking changes, for an easier migration, please refer to our migration guide.

    Compatibility with Unity Editor versions

    upload_2023-3-17_14-57-34.png


    In practice, you can use any of the two major versions of the Transport package with Unity 2022.

    Which version should I choose ?
    If you are developing a custom netcode solution on top of the Transport Package, we recommend you to update to 2.X.
    As a comparison, the following table shows the correspondence between Unity netcode packages and the Transport package they support on a given editor version.

    upload_2023-3-17_14-59-23.png
     
Thread Status:
Not open for further replies.