> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-zh/chang-jing-bian-ji-qi/ru-men/about-editor.md).

# 编辑场景

Scene Editor 是一个简单的可视化工具，可让你创建并发布 Decentraland 场景。

Creator Hub 包含一个强大的场景编辑器，它将简单的无代码界面与编写代码来自定义场景的能力结合在一起。

![Creator Hub](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-4bb587d1b095c40805b28f7194d42697474dea03%2Ficon-creator-hub.png?alt=media\&token=65114cd1-c26b-4aca-99dd-b5e4c5c5dbab)

参见 [Creator Hub 安装](/creator/content-creator-zh/chang-jing-bian-ji-qi/ru-men/editor-installation.md) 即可开始。

{% embed url="<https://www.youtube.com/watch?v=tK5-fyBVnK0>" %}

## 创建场景

要创建新场景，请打开 Creator Hub 并点击旁边的箭头 **创建** 按钮。在下拉菜单中选择 **新场景**.

![创建按钮的下拉菜单已打开，选项有新场景和导入场景。](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-36abbf1843260b86209d7b723e8cbd6c70036e7d%2Fcreate-dropdown.png?alt=media\&token=93d582f4-c379-4b20-8a0f-04dbb29eb3c7)

然后系统会要求你为场景命名，并选择保存位置。如果你想从带有一些初始内容的项目开始，而不是空场景，请点击 **模板** 下的 **场景** 选项卡并选择一个。

参见 [管理场景](/creator/content-creator-zh/chang-jing-bian-ji-qi/ru-men/manage-scenes.md) 了解更多详情。

场景打开后，你会在左侧看到实体树，中间是画布，右侧是所选项目的属性，底部是资源包。

![一个打开了小型场景的场景编辑器：左侧实体树列出了 Player、Camera、Scene 和几个项目，画布显示一片草地，上面有烧烤架和鸟喷泉，右侧属性面板显示所选 Bird Fountain 的 Transform 和 GLTF 组件。](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-133bafbc6b2f6452c18dd716327aa81218314b64%2Feditor-overview.png?alt=media\&token=01f5222c-a0e7-42c2-8e6b-d886cc889977)

参见 [场景编辑器基础](/creator/content-creator-zh/chang-jing-bian-ji-qi/ru-men/scene-editor-essentials.md) 了解各个部分的导览。

## 四处移动

要在场景编辑器中导航：

* 使用 **W** 和 **S** 键来靠近或远离。你也可以使用鼠标滚轮，或者 **+** 和 **-** 键
* 使用 **A** 和 **D** 键来左右移动。
* 使用 **Q** 和 **E** 键来上下移动。
* 使用 **鼠标左键** 来点击和选择项目，并将它们移动到其他位置。
* 使用 **鼠标右键** 并拖动来旋转摄像机。

{% hint style="info" %}
**💡 提示**：你也可以通过按住 **Alt** （Windows）或 **Option** （Mac）并拖动来旋转摄像机。这在使用触控板而不是鼠标时尤其方便。
{% endhint %}

* 按 **空格键** 可将摄像机重置回默认位置

## 添加项目

在底部菜单中浏览主题化资源包类别，找到可放置在场景中的不同项目。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-533d4553c3a38522cdd08dce8040a08c038699e7%2Fasset-packs.png?alt=media\&token=99210953-9718-4fa7-895c-317c45f74d6e)

要放置项目，请从资源包菜单中点击并拖动到画布中场景上的某个位置。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-30237e6006c76b69f5cfe737e543875987ed67b8%2Fdrop-item.gif?alt=media\&token=5d263b79-cd82-4436-bc8e-3a07e68df559)

点击并拖动所选项目，可在地面高度自由地将其在场景中移动。参见 [场景编辑器基础](/creator/content-creator-zh/chang-jing-bian-ji-qi/ru-men/scene-editor-essentials.md#position-items) 了解更多详情。

{% hint style="info" %}
**💡 提示**：有些项目是 **智能项目**，它们自带内置交互行为。参见 [智能项目](/creator/content-creator-zh/chang-jing-bian-ji-qi/jiao-hu-xing/smart-items.md) 了解更多详情。
{% endhint %}

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-f368bfdf7894d18f29875528bdd91cf8429e70b3%2Fsmart-items.jpg?alt=media\&token=8f5f5b70-db16-4d37-b41c-4ee0eafe87e4)

## 预览

要测试你的场景并像玩家一样体验它，请点击 **播放** 按钮，位于右上角。这将打开一个新窗口，显示 Decentraland 桌面浏览器，只运行你的场景。在那里你可以在场景中移动，并与可交互物品互动。

{% hint style="warning" %}
**📔 注**：如果你的设备上还没有安装，请下载 **Decentraland 启动器** 自 [Decentraland.org](https://decentraland.org).
{% endhint %}

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-30317b50bc4b4e646a1b28effe1ff76939ab0f28%2Fpreview-button.png?alt=media\&token=fbed0f2f-8063-4283-9b07-2d964c9c0e68)

点击 **播放** 按钮旁边的箭头以打开 **播放选项** 菜单，在这里你可以选择是在桌面客户端、浏览器中还是手机上进行预览。参见 [预览你的场景](/creator/content-creator-zh/chang-jing-sdk7/ru-men/preview-scene.md) ，了解所有可用选项的完整列表。

## 场景渲染器

场景编辑器使用 **Babylon** 作为编辑画布的默认渲染器。你可以切换到 **Bevy（实验性）**.

要更改渲染器：

1. 点击左上角的 Creator Hub 标志并选择 **设置**.
2. 前往 **实验性** 选项卡。
3. 开启 **启用 Bevy 场景渲染器**.

![实验性选项卡中的应用偏好设置对话框，显示“启用 Bevy 场景渲染器”开关。](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-f6da3df8ec8d9406ec57a9eabac5665b12d7011d%2Fsettings-experimental.png?alt=media\&token=f31b0e80-88ef-4e66-80f7-4f7139783082)

Bevy 渲染器是编辑画布的替代引擎。它影响你在编辑时场景的外观，而不影响发布后玩家看到的效果。

使用 Bevy 渲染器时，工具栏会增加一个摄像机模式下拉菜单、用于在画布中运行场景的播放和停止按钮，以及一个 **交互** 切换（游戏手柄图标），以及一个 **静音场景音频** 切换（扬声器图标）。

![Bevy 渲染器下的编辑器工具栏：撤销和重做、gizmo 工具、显示为 Free 的摄像机下拉菜单、播放和停止按钮、Interact 游戏手柄切换、偏好设置齿轮和检查器按钮。](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-6fc9e97a2b94bc9f72334ce6691f80760c50dfb6%2Feditor-toolbar-bevy.png?alt=media\&token=66943bd3-3fba-4e0b-99ed-3e257d99ef2f)

使用 **交互** 切换，可直接在编辑器画布中测试正在运行的场景，而无需打开单独的预览窗口。这让你可以快速检查交互，而无需停止场景。在交互时，智能项目会在画布中直接显示悬停提示，例如需要按下的键。

点击标有 **静音场景音频**的扬声器按钮，即可在工作时将场景静音。它会静音场景中的每个 [音频源](/creator/content-creator-zh/chang-jing-sdk7/3d-nei-rong-ji-chu/sounds.md) 以及音频流，无论是在编辑时还是在场景在画布中运行时都有效，而且如果场景重新加载，它仍会保持静音。再次点击它，此时标有 **取消场景静音**，即可恢复声音。该按钮仅在 Bevy 渲染器下出现，因为 Babylon 渲染器不会播放场景的音频。

Bevy 编辑器还会加载 [自定义项目](/creator/content-creator-zh/chang-jing-bian-ji-qi/jiao-hu-xing/custom-items.md)，显示损坏或缺失资源的占位标记，并在场景的 SDK 依赖过时时时提供带有修复操作的友好错误消息。工具栏中的摄像机切换显示 **自由** 或 **玩家**，具体取决于你当前所处的模式。

{% hint style="warning" %}
**📔 注**：场景指标选项卡在 Bevy 下不可用。请在桌面或移动客户端中运行场景预览，并在那里查看统计信息。
{% endhint %}

{% hint style="warning" %}
**注意：** Bevy 渲染器是实验性的，可能不支持默认 Babylon 渲染器所提供的所有编辑功能。
{% endhint %}

## 场景设置

点击 **铅笔图标** 位于屏幕右上角。这里会打开一系列可编辑的场景级属性，包括名称、缩略图、场景大小等。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-d2147688ebde75948ba26a9fbe1261f9abdc66c7%2Fpencil-icon.png?alt=media\&token=21677d31-8915-4809-a60a-6674c7497d98)

参见 [场景设置](/creator/content-creator-zh/chang-jing-bian-ji-qi/pei-zhi/scene-settings.md) 了解更多详情。

## 发布你的场景

当你对场景满意后，按下 **发布** 按钮。

![](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-a9b358ccf604ec11addf4852ce36c321e35745e0%2Fpublish-options.png?alt=media\&token=8790912e-6224-459d-94da-4d3d86816f2e)

参见 [发布场景](/creator/content-creator-zh/chang-jing-bian-ji-qi/fa-bu/publish-scene.md) 了解更多详情。

## 另请参见

* 参见 [场景编辑器基础](/creator/content-creator-zh/chang-jing-bian-ji-qi/ru-men/scene-editor-essentials.md) ，了解有关场景编辑器界面的更多详情。
* 参见 [智能项目](/creator/content-creator-zh/chang-jing-bian-ji-qi/jiao-hu-xing/smart-items.md) ，了解如何为你的场景添加简单交互。
* 参见 [与代码结合](/creator/content-creator-zh/chang-jing-bian-ji-qi/shi-yong-dai-ma-kuo-zhan/overview.md) ，了解如何编辑场景代码。
* 参见 [发布场景](/creator/content-creator-zh/chang-jing-bian-ji-qi/fa-bu/publish-scene.md) ，了解如何将你的场景发布到 Decentraland。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-zh/chang-jing-bian-ji-qi/ru-men/about-editor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
