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. Dismiss Notice

Official Unity Dedicated Server package

Discussion in 'Dedicated Server' started by JohannRw, Mar 30, 2023.

  1. JohannRw

    JohannRw

    Unity Technologies

    Joined:
    Jan 26, 2022
    Posts:
    12
    The com.unity.dedicated-server experimental package is designed to help developers create and optimize dedicated server builds more efficiently.

    The first feature brought by this package is Content selection, which allows you to select which content should go on either the client or the server.

    This feature can be used at different stages of the authoring experience, including at the project level, per game objects or per components. It also works with prefabs and addressables.


    Client.gif
    Client version of a project

    Server.gif
    Server version of a project

    Requirements

    • Editor version 2023.1+
    • From Unity Hub, Install the Dedicated Server Build Support module for the platform you’re targeting.
    • From the package manager, install com.unity.dedicated-server. As this package is experimental, it needs to be installed by name.


    Getting started

    To get up and running follow the steps in the package documentation


    Current state


    This package is currently experimental and is subject to change. It is not yet suitable for production.


    What's next

    The dedicated-server package will evolve to add more tools to facilitate creating and optimizing a dedicated game server. It will also evolve based on the feedback we will receive. To get a sneak peek at the roadmap or to request a feature, please visit this page.


    Feedback

    We would love to hear your feedback!
    • Do you have any use cases that we haven’t covered yet?
    • Are there any workflows that are unclear or missing?
    • Do you have any issues or questions about the documentation?

    Please share your thoughts in this forum or on the discord - #Dedicated-server-platform-development.


    How to report bugs

    Ideally, we'd like any bugs reported through the built-in bug reporter tool, as that will automatically provide us with some relevant context. When reporting bugs:
    • Please attach a bare-bones project that reproduces the issue to help us diagnose the issue you’re facing with the dedicated server platform or with the dedicated-server package.
    • If available, please also attach some log files.
    Have a look at this page for more information and best practices around bug reporting.

    Once you have submitted a bug report through the bug reporter, please feel free to start a discussion about it in this sub-forum.


    Resources

    Related to the creation of a dedicated server platform in the Unity editor

    Related to hosting and operating a dedicated server in the cloud

    Thank you for your interest, we're looking forward to your feedback!
     
  2. MrG

    MrG

    Joined:
    Oct 6, 2012
    Posts:
    355
    So....no backporting any improvements to 2021 / 2022 LTS?

    Sorry, but we're allergic to alpha / beta versions.
     
  3. JohannRw

    JohannRw

    Unity Technologies

    Joined:
    Jan 26, 2022
    Posts:
    12
    Thanks for this feedback.
    Although it is not supported officially, we made the package partially compatible with 2022.
    This include the content selection feature that is presented above.
    Official backport down to 2022 LTS is under consideration, the feedback we are currently gathering is going to help us determine if this makes sense or not.
     
  4. Taro_FFG

    Taro_FFG

    Joined:
    Jun 24, 2022
    Posts:
    57
    We are using Unity in production, and speaking from experience of the last 2 Unity LTS versions, after 1 year of LTS a version becomes sufficiently bug free enough to be considered production ready.
    This means for projects that are serious features from 2023.1 will be available for production use in mid 2025.
    If the package is generally able to support 2022 it would be very nice to add support for it.
    Not stripping content from Addressables is a big oversight given that Addressables is the go to content solution for bigger projects.
    Currently I have to fork the SBP and put hacks in there to strip at least textures and audio files for servers but we are still a few gigabytes too heavy in the servers which lead to slow iteration times when testing server versions and queue times for players when waiting for new server instances spinning up.
     
  5. cristianm_unity

    cristianm_unity

    Unity Technologies

    Joined:
    Oct 16, 2018
    Posts:
    229
    Yes, we have been working on enabling the Addressables case. The first step was to allow Asset Bundles to be built for the Dedicated Server subtarget so it can be optimized.

    You will find that the Content Selection feature provided in this package allows you to decide to remove specific components from your prefabs. So, for instance, you can check the "Strip all rendering components" option which is going to remove all Camera, Light and Renderer components from your Dedicated Server bundles.
     
  6. Taro_FFG

    Taro_FFG

    Joined:
    Jun 24, 2022
    Posts:
    57
    That is great to hear.
    To clarify, is 2022.1 also able to handle the package or only .2/LTS?
     
  7. cristianm_unity

    cristianm_unity

    Unity Technologies

    Joined:
    Oct 16, 2018
    Posts:
    229
    It could work. We develop currently for 2023.x, keeping it --for now, unofficially-- compatibility with 2022.2 as much as we can (some features can be missed). Compatibility with other versions would be entirely incidental.
     
    Taro_FFG likes this.
  8. uthon

    uthon

    Joined:
    Nov 23, 2015
    Posts:
    14
    Are there licensing requirements that prevent us from shipping against pre-release software? I'm just curious, because if there are then when does this software come out of pre-release?
     
  9. JohannRw

    JohannRw

    Unity Technologies

    Joined:
    Jan 26, 2022
    Posts:
    12
    As far as I know there is none. The experimental / pre-release tags mean that the package is in active development. As such, the API might change between the current version and the released one.

    We do not have a release date yet but we regularly publish updates on our discord.