Documentation

Support

Script types

Choose the appropriate script type that matches your requirements when you use Cloud Code scripts.
Read time 1 minuteLast updated a day 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. To learn more about Moderation, refer to the documentation.