# Cloud Code



# Cloud Code

- [Overview](https://docs.unity.com/en-us/cloud-code.md)

## Server authority

- [Server authority](https://docs.unity.com/en-us/cloud-code/server-authority.md)
- [UGS integration and access control](https://docs.unity.com/en-us/cloud-code/server-access-control.md)
- [Cheat prevention](https://docs.unity.com/en-us/cloud-code/cheat-prevention.md)
- [Game state management](https://docs.unity.com/en-us/cloud-code/game-state-management.md)
- [Debug with logs](https://docs.unity.com/en-us/cloud-code/server-authority-debug.md)
- [Best practices](https://docs.unity.com/en-us/cloud-code/best-practices.md)

## Cloud Code C# modules

- [Overview](https://docs.unity.com/en-us/cloud-code/modules/overview.md)
- [Get started](https://docs.unity.com/en-us/cloud-code/modules/getting-started.md)

### Concepts

- [Authentication](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/authentication.md)
- [Module structure](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/module-structure.md)
- [Token support](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/token-support.md)
- [Error handling](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/error-handling.md)
- [Module reference files](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/module-reference-assets.md)

### Tutorials


#### Run modules

- [Run modules](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/run-modules.md)
- [Unity Runtime](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/run-modules/unity-runtime.md)
- [REST API](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/run-modules/rest-api.md)

#### Write modules

- [Write modules](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/write-modules.md)
- [Using Unity Editor](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/write-modules/unity-editor.md)
- [Using the CLI](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/write-modules/cli.md)
- [Using the REST API](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/write-modules/rest-api.md)
- [Using the Unity Dashboard](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/write-modules/unity-dashboard.md)

#### Development essentials


##### Write unit tests

- [Write unit tests](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/unit-testing.md)
- [Create a unit test project](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/unit-testing-create-project.md)
- [Create a unit test ](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/unit-testing-create.md)
- [Dependency injection](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/initialize-modules/dependency-injection.md)
- [Custom serialization](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/initialize-modules/custom-serialization.md)
- [Batch requests](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/batch-requests.md)

#### Automate deployment

- [Integrate with CI/CD](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/automation.md)
- [Automate local deployment](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/automate-local-deployment.md)

#### Integrate services

- [Integrate with other Unity Services](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/unity-services-integration.md)
- [Interact with cross-player data](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/cross-player-data.md)
- [Integrate with external services](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/external-services-integration.md)
- [Use Access Control](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/access-control.md)
- [Send push messages](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/push-messages.md)

#### Advanced configuration

- [Manual workflow](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/manual-workflow.md)
- [Package code](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/package-code.md)
- [Data transfer objects](https://docs.unity.com/en-us/cloud-code/modules/how-to-guides/initialize-modules/dto.md)

#### Use Cases

- [Use Cases](https://docs.unity.com/en-us/cloud-code/modules/use-cases.md)
- [Quest system](https://docs.unity.com/en-us/cloud-code/modules/use-cases/quest-system.md)
- [Advance a community goal](https://docs.unity.com/en-us/cloud-code/modules/use-cases/community-goal.md)

### Reference

- [Limits](https://docs.unity.com/en-us/cloud-code/modules/reference/limits.md)
- [Available libraries](https://docs.unity.com/en-us/cloud-code/modules/reference/available-libraries.md)
- [Cost](https://docs.unity.com/en-us/cloud-code/modules/reference/cost.md)

## Cloud Code JavaScript scripts

- [Overview](https://docs.unity.com/en-us/cloud-code/scripts/overview.md)
- [Get started](https://docs.unity.com/en-us/cloud-code/scripts/getting-started.md)

### Concepts

- [Authentication](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/authentication.md)
- [Script structure](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/script-structure.md)
- [Script types](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/script-types.md)
- [Token support](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/token-support.md)
- [Error handling](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/error-handling.md)
- [JavaScript files](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/script-files.md)

### Tutorials


#### Run scripts

- [Run scripts](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/run-scripts.md)
- [Unity Runtime](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/run-scripts/unity-runtime.md)
- [REST API](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/run-scripts/rest-api.md)

#### Write scripts

- [Write scripts](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/write-scripts.md)
- [Using the Unity Dashboard](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/write-scripts/unity-dashboard.md)
- [Using Unity Editor](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/write-scripts/unity-editor.md)
- [Using the CLI](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/write-scripts/cli.md)
- [Using the REST API](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/write-scripts/rest-api.md)
- [Interact with cross-player data](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/cross-player-data.md)
- [Integrate with CI/CD](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/automation.md)
- [Use Access Control](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/access-control.md)
- [Test run a script](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/test-run.md)
- [Integrate with other Unity Services](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/unity-services-integration.md)
- [Integrate with external services](https://docs.unity.com/en-us/cloud-code/scripts/how-to-guides/external-services-integration.md)

#### Use Cases

- [Use Cases](https://docs.unity.com/en-us/cloud-code/scripts/use-cases.md)
- [Server time anti-cheat](https://docs.unity.com/en-us/cloud-code/scripts/use-cases/server-time-anti-cheat.md)
- [Redeemable coupons](https://docs.unity.com/en-us/cloud-code/scripts/use-cases/redeemable-coupons.md)
- [Daily Rewards](https://docs.unity.com/en-us/cloud-code/scripts/use-cases/daily-rewards.md)
- [Use Lobby](https://docs.unity.com/en-us/cloud-code/scripts/use-cases/lobby.md)
- [Advanced use cases](https://docs.unity.com/en-us/cloud-code/scripts/use-cases/advanced-use-cases.md)

### Reference

- [Limits](https://docs.unity.com/en-us/cloud-code/scripts/reference/limits.md)
- [Available libraries](https://docs.unity.com/en-us/cloud-code/scripts/reference/available-libraries.md)
- [Cost](https://docs.unity.com/en-us/cloud-code/scripts/reference/cost.md)

## Logging

- [Overview](https://docs.unity.com/en-us/cloud-code/logging/overview.md)

### Concepts

- [Authentication](https://docs.unity.com/en-us/cloud-code/logging/concepts/authentication.md)
- [Log schema](https://docs.unity.com/en-us/cloud-code/logging/concepts/schema.md)
- [Filter logs](https://docs.unity.com/en-us/cloud-code/logging/concepts/filter-logs.md)

### Tutorials

- [Emit logs](https://docs.unity.com/en-us/cloud-code/logging/tutorials/emit-logs.md)

#### Retrieve logs

- [Using the Unity Dashboard](https://docs.unity.com/en-us/cloud-code/logging/tutorials/retrieve-logs/unity-dashboard.md)
- [Using the REST API](https://docs.unity.com/en-us/cloud-code/logging/tutorials/retrieve-logs/rest-api.md)

## Triggers

- [Overview](https://docs.unity.com/en-us/cloud-code/triggers/overview.md)
- [Get started](https://docs.unity.com/en-us/cloud-code/triggers/getting-started.md)

### Concepts

- [Authentication](https://docs.unity.com/en-us/cloud-code/triggers/concepts/authentication.md)
- [Events](https://docs.unity.com/en-us/cloud-code/triggers/concepts/events.md)
- [Supported UGS events](https://docs.unity.com/en-us/cloud-code/triggers/concepts/supported-ugs-events.md)
- [Trigger structure](https://docs.unity.com/en-us/cloud-code/triggers/concepts/trigger-structure.md)
- [Filters](https://docs.unity.com/en-us/cloud-code/triggers/concepts/filters.md)
- [Failure handling](https://docs.unity.com/en-us/cloud-code/triggers/concepts/failure-handling.md)

### Tutorials

- [Setup Cloud Code](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/setup-cloud-code.md)

#### Schedule events

- [Using the CLI](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/schedule-events/cli.md)
- [Using the REST API](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/schedule-events/rest-api.md)

#### Define triggers

- [Using the CLI](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/define-triggers/cli.md)
- [Using the REST API](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/define-triggers/rest-api.md)
- [Using the Unity Dashboard](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/define-triggers/unity-dashboard.md)
- [Use Access Control](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/access-control.md)
- [Debug and monitor events](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/debug-events.md)

#### Use case samples

- [Use case samples](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/use-cases/overview.md)
- [Reward top players with in-game currency at the end of season](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/use-cases/reward-top-players.md)
- [Initialize newly signed-up players with default configuration values](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/use-cases/initialize-new-players.md)
- [Wish players a happy new year](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/use-cases/happy-new-year.md)
- [Send a push message to the player whose score was beaten](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/use-cases/higher-score-message.md)
- [Announce a level up to all players in joined lobbies](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/use-cases/announce-level-up.md)
- [Tune game difficulty level for individual player ](https://docs.unity.com/en-us/cloud-code/triggers/tutorials/use-cases/tune-game-difficulty.md)

### Reference

- [Limits](https://docs.unity.com/en-us/cloud-code/triggers/reference/limits.md)
- [Cost](https://docs.unity.com/en-us/cloud-code/triggers/reference/cost.md)

## Reference

- [Unity SDK](https://docs.unity3d.com/Packages/com.unity.services.cloudcode@latest/index.html?subfolder=/api/index.html)
- [Cloud Code Services JavaScript SDKs](https://cloud-code-sdk-documentation.cloud.unity3d.com/)
- [Cloud Code Services C# SDKs](https://docs.unity.com/en-us/cloud-code/modules/reference/available-libraries.md)
- [Cloud Code Admin REST API](https://services.docs.unity.com/cloud-code-admin/v1/)
- [Cloud Code Client REST API](https://services.docs.unity.com/cloud-code/v1/)
- [Scheduler Admin REST API](https://services.docs.unity.com/scheduler-admin/v1/)
- [Triggers Admin REST API](https://services.docs.unity.com/triggers-admin/v1/)
- [Observability REST API](https://services.docs.unity.com/observability/v1/)

## Privacy and consent

- [Privacy and consent](https://docs.unity.com/en-us/cloud-code/privacy-and-consent.md)
- [Privacy overview for Cloud Code](https://docs.unity.com/en-us/cloud-code/privacy-overview.md)
- [Apple privacy manifest](https://docs.unity.com/en-us/cloud-code/apple-privacy-survey.md)
- [Google Play data safety section](https://docs.unity.com/en-us/cloud-code/google-data-safety.md)
