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
    • Overview
    • Get started
    • Concepts
      • Authentication
      • Script structure
      • Script types
      • Token support
      • Error handling
      • JavaScript files
    • Tutorials
    • Reference
  • Logging
  • Use-case samples
  • Privacy and consent
  1. Cloud Code

Script types

Choose the appropriate script type that matches your requirements when you use Cloud Code scripts.
Read time 1 minute
Last updated 5 months ago

Script types define the purpose of a Cloud Code script. The script type is set when you create a script. Each type has a different template to get started with.

API (default)

API scripts are the default script type. They define your game logic as serverless functions and interact with other backend services.

Moderation

Moderation scripts provide a template for actions used by the Moderation service.
Moderation scripts are used to communicate actions taken to your own backend, or to other UGS services via webhooks or APIs. The Moderation template provides you with a starting point for how to get moderation data to your own webhooks or a UGS service.
Moderation scripts cannot be invoked from the game client. They only work with Triggers.
Note
Moderation scripts are meant to be used with the Moderation service. For general purpose scripts, use the API script type.
To learn more about Moderation, refer to the documentation.

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
    • API (default)

    • Moderation


Report a problem with this page