Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Official Cloud Code C# Modules are now live!

Discussion in 'Cloud Code' started by Unity_AndyP, Mar 22, 2023.

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


    Unity Technologies

    Jun 23, 2021
    We are very happy to share with you that Cloud Code C# Modules are now available!

    What are Cloud Code C# Modules?

    C# Modules are C# libraries that can be executed by Cloud Code, providing reusable and server-authoritative code. Unlike single scripts, these modules offer multiple entry points and facilitate code reuse.

    You can create a primary library and a data transfer object (DTO) library, the latter of which can be used both in Cloud Code and your game. This ensures that data transferred between Cloud Code and your game uses the same format.

    With Cloud Code C# Modules, you are now able to:
    • Structure the code in any way you prefer
    • Use dependencies, including packages from NuGet
    • Have multiple endpoints exposed per Module
    • Reuse code between endpoints or even between modules
    • Configure everything in code - parameters, entry points, schedules (coming soon)
    • Speed up iteration time: no longer necessary to upload code to Cloud Code in order to detect compilation errors
    • Run unit tests locally or as part of a CI/CD pipeline.

    To learn more, please visit our documentation for Cloud Code C# Modules.
    pKallv, Grizmu, Mj-Kkaya and 8 others like this.
Thread Status:
Not open for further replies.