Documentation

​
​

Development

User Acquisition

Monetization

Industry

Cloud Code

Scripting API

Services C# SDKs

Services JavaScript SDKs

Admin REST API

Client REST API

Scheduler Admin REST API

Observability REST API

Open Unity Dashboard

Cloud Code

LiveOps
​
​
Cloud Code
  • Overview
  • Get started
  • Server authority
  • Cloud Code C# modules
  • Cloud Code JavaScript scripts
  • Logging
  • Use-case samples
  • Privacy and consent

Cloud Code

Write and run server-side code on a fully managed infrastructure that scales automatically to meet your traffic demands.
Read time 2 minutes
Last updated 3 months ago

Cloud Code is a serverless compute service for game developers who want to run game logic securely in the cloud without managing infrastructure. Cloud Code helps you do the following:
  • Keep game rules and sensitive data off the client to prevent cheating and reverse-engineering.
  • Deploy updates to live games without requiring players to update their installs.
  • Scale automatically to meet traffic demands, paying only for what you use.
  • Integrate multiple Unity services from a single secure server-side environment.
Cloud Code manages all infrastructure for you. You write and deploy code in C# or JavaScript, then call it from your game using the Cloud Code SDK or the Cloud Code Client API.
Cloud Code integrates with the following Unity services:
  • Remote Config
  • Cloud Save
  • Economy
  • Leaderboards
For information about integrating Cloud Code with other Unity services, refer to Integrate with Unity services (C# modules) and Integrate with Unity services (JavaScript scripts).
For pricing information, refer to C# modules cost and JavaScript scripts cost.
Get started with Cloud Code
Explore Cloud Code's main capabilities, fundamental concepts, available interfaces, and main workflow to start running server-side game logic.
Server authority
Manage and enforce game logic on your server to ensure fair gameplay, prevent cheating, and maintain data integrity.
Cloud Code C# modules
Deploy reusable, server authoritative C# libraries that allow multiple entry points and generate type-safe client bindings.
Cloud Code JavaScript scripts
Write server-side JavaScript code and call these scripts from games built with Unity or any other client.
Logging
Instrument your cloud environment with structured logs to detect and debug live issues across Cloud Code scripts, modules, and Triggers.
Use-case samples
Explore samples that demonstrate how to use Cloud Code with other Unity services to implement common game development solutions.
Privacy and consent
Learn about privacy compliance requirements for Cloud Code across iOS, Android, and other regulatory standards.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • Additional resources
  • Unity Dashboard
  • Unity Gaming Services CLI
  • UGS use cases sample project

Report a problem with this page