Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Official UNet, including Low-level API, now removed from Unity 2022.2. Find links to alternatives here.

Discussion in 'UNet' started by UnityGio, Apr 5, 2022.

  1. UnityGio

    UnityGio

    Unity Technologies

    Joined:
    Jun 8, 2018
    Posts:
    18
    Hello everyone,

    Unity’s legacy netcode solution for Monobehaviours, UNet, was formally deprecated in August 2018. Last year, we posted about UNet’s planned removal from the Unity Editor and shared information related to our sunset plan for its legacy services (UNet Relay and UNet Matchmaker).

    Now, we’d like to inform you that with the release of Unity 2022.2.0a5 on February 16th, 2022, UNet low-level API (LLAPI) has been removed from the editor for the upcoming Unity 2022.2 tech stream. This also means that UNet will not be included in the LTS version of the engine for 2022. You can still choose to use UNet LLAPI if you use Unity 2021.3 LTS. All our LTS releases come with a two-year support-lifecycle. Developers starting new projects can opt to use our new multiplayer libraries: Netcode for GameObjects and Netcode for Entities. We have a migration guide for UNet users wanting to convert to Netcode for GameObjects on our documentation site.

    Legacy UNet services, though deprecated, will remain online and in maintenance-mode throughout the two-year, 2021.3 LTS support lifecycle (estimated to conclude around mid-year 2024). No immediate action is required of UNet Relay and UNet Matchmaker users today. However, we recommend that creators using legacy services begin the process of migrating to our new Unity Game Services in order to ensure your games are well supported moving forward. Unity will publish a migration guide as part of the upcoming Unity Gaming Services (UGS) launch that will inform users how to move from the legacy services to the live Multiplay, Relay, Matchmaker, and Lobby services.

    For more information on these alternatives, please check out these links:

    Netcode for GameObjects
    Client-server network modeled netcode with no dependency on Unity’s Entity Component System (ECS)

    Available as a supported pre-release package for 2020.3 LTS, 2021.3 LTS, and the latest tech stream. Netcode for GameObjects is open source and comes with an emphasized design for the creation of cooperative style games.​

    Netcode for Entities
    Client-server network modeled netcode that leverages ECS

    Available as an experimental package with 2020.3 LTS and Unity 2021 LTS. Designed to support medium to large scale competitive action games.​

    Unity Transport (UTP)
    Netcode-agnostic transport layer library with end-to-end encryption

    Available as a release package for 2020.3 LTS, Unity 2021 LTS and the 2022 Tech stream releases.​

    Unity Relay
    Encryption supported Relay Service with consumption-modeled pricing

    In Open Beta with a GA planned for June 2022. A migration guide will be available for users of UNet’s legacy relay service. Users may start using Relay on their own immediately.​

    Unity Lobby
    Service to create, join, browse public and private lobbies

    In Open Beta with a GA planned for June 2022. A migration guide will be available for users of UNet’s legacy lobby/matchmaking service. Users may start using Lobby on their own immediately​

    Multiplay & Unity Matchmaker
    Dedicated Game Server hosting and Matchmaking service
    • Enterprise: Currently available, please contact us
    • Self-Serve: Multiplay Self-Serve and Matchmaker Self-Serve publicly available in June 2022.

    We are very grateful for your feedback throughout the years since we first announced our intention to sunset UNet. Now, we’re excited to support you as you move onto our latest technologies. Users can learn first hand how our APIs for Netcode for GameObjects, Unity Transport, Relay, and Lobby work together by downloading and trying out our vertical-slice game sample, Boss Room. Should you have any questions or needs, please reach out to us through your Unity representative, on the UNet Forum, or real-time on our Unity Multiplayer Networking Discord server.


    Thank you,
    The Unity Multiplayer Teams
     
    Last edited: Apr 27, 2022
  2. Gamemakers3D

    Gamemakers3D

    Joined:
    Dec 8, 2020
    Posts:
    23
    In Version 2022 that could mean goodbye Mirror networking extensions of unet, WebGL/WebAssembly in LAN needs netcode muliplayer with priority. (Dual Duplex Channel TCP sockets and UDP quic/webrtc)
     
  3. nick-vas

    nick-vas

    Joined:
    Oct 24, 2020
    Posts:
    5
  4. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Don't forget to (finally) remove Unet from the docs that match this build. Currently it's just a deprecation warning, which is fine for older versions but UNet is removed now.
     
  5. UnityGio

    UnityGio

    Unity Technologies

    Joined:
    Jun 8, 2018
    Posts:
    18
    Thanks, @nick-vas and @hippocoder. We'll be correcting these issues with broken links shortly. Apologies for the inconvenience and thank you for your posts!
     
    nick-vas and hippocoder like this.