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
    • UGS integration and access control
    • Cheat prevention
    • Game state management
    • Debug with logs
  • Cloud Code C# modules
  • Cloud Code JavaScript scripts
  • Logging
  • Use-case samples
  • Privacy and consent
  1. Cloud Code

Server authority

Manage and enforce game logic on your server to ensure fair gameplay, prevent cheating, and maintain data integrity.
Read time 2 minutes
Last updated 9 months ago

In game development, server authority is game logic that you manage and enforce on your server instead of on individual player devices:
  • The server is the source of truth for important game data, such as player progress and high scores. This makes the server data authoritative.
  • You store your game rules and validation logic, such as validation checks on player achievements, on the server.
  • Player devices send data to the server when events happen in your game. The server processes the data it receives and updates values such as profiles and leaderboards.
  • The server protects the integrity of your game data and rules. Clients can’t directly manipulate game elements such as scores or achievement unlocks.
Cloud Code allows you to write server-side game logic that runs securely in the cloud. This fully managed service scales automatically to meet traffic demands, so you don't have to worry about infrastructure or operations. You can write your Cloud Code logic in either C# or JavaScript.

Benefits of server authority

Server authority takes work to implement, but improves your game's integrity, security, and quality of life for players:
  • Server authority secures game data on a backend server which makes it impossible to manipulate local data. This helps you ensure fair game play and prevent cheating in your games.
  • Server authority makes it easier cross platform compatibility to your game without issues.
  • Your players can switch devices and retain their game progress and profiles.
  • You can update server authority code without the need for players to update their games.
  • You can perform actions in response to server side state changes without any client involvement.

Additional resources

  • Learn about Cheat prevention with server authority.
  • Refer to an example of Game state management with server authority.
  • Learn how server authority can affect UGS integration and access control.

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.

  • On this page
    • Benefits of server authority

    • Additional resources


Report a problem with this page