---
title: 编写模块
product: Cloud Code
version: 3.1.0
latest_version: 3.1.0
status: This page documents version 3.1.0. The latest version is 3.1.0.
canonical: https://docs.unity.com/zh-cn/cloud-code/3.1.0/modules/how-to-guides/write-modules
latest_url: https://docs.unity.com/zh-cn/cloud-code/3.1.0/modules/how-to-guides/write-modules.md
last_updated: 2026-11-20
generated_at: 2026-12-03T02:37:56.408Z
locale: zh-cn
---

# 编写模块

> Create Cloud Code modules using different authoring methods including the Unity Editor, CLI, or REST API.

使用不同的创作方法编写模块。

| **主题**                                                | **描述**                                     |
| ----------------------------------------------------- | ------------------------------------------ |
| [UGS CLI](./write-modules/cli.md)                     | 使用 Unity Gaming Services（Unity 游戏服务）命令行工具。 |
| [Unity 编辑器](./write-modules/unity-editor.md)          | 使用 Unity 编辑器中的 Deployment（部署）窗口。           |
| [Unity Dashboard](./write-modules/unity-dashboard.md) | 使用 Unity Dashboard 来预览模块。                  |
| [REST API](./write-modules/rest-api.md)               | 调用 Cloud Code API。                         |
