> 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/kai-shi-shi-yong/about-editor.md).

# 编辑场景

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

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)

参见 [Creator Hub 安装](/creator/content-creator-zh/chang-jing-bian-ji-qi/kai-shi-shi-yong/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-8133cc3d42ad03fd97fbd66482f9825ff74c1227%2Fnew-scene.png?alt=media)

然后你可以选择使用哪个模板作为起点。你可以选择一个 **空场景** 或一个带有一些初始内容的项目。

随后系统会要求你为场景命名，并选择保存位置。

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

## 移动

要在场景编辑器中找到方向：

* 使用 **W** 和 **S** 以靠近或远离。你也可以使用鼠标滚轮，或者 **+** 和 **-** 键
* 使用 **一个** 和 **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)

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

![](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)

点击并拖动所选项目，可在地面上自由移动它。参见 [场景编辑器基本要点](/creator/content-creator-zh/chang-jing-bian-ji-qi/kai-shi-shi-yong/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)

## 预览

要测试你的场景并像玩家一样体验它，请点击 *预览* 按钮位于右上角。这会打开一个新的窗口，其中运行着 Decentraland Desktop Explorer，只加载你的场景。在那里，你可以在场景中移动并与可交互物品互动。

{% hint style="warning" %}
**📔 注意**：如果你还没有在机器上安装它，请下载 **Decentraland Launcher** 来自 [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)

通过旁边下拉菜单配置不同的预览选项 **预览** 按钮。参见 [预览你的场景](/creator/content-creator-zh/chang-jing-sdk7/ru-men/preview-scene.md) ，以查看所有可用选项的完整列表。

## 场景渲染器

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

要更改渲染器：

1. 打开 Creator Hub **设置** （齿轮图标）。
2. 前往 **实验性** 选项卡中。
3. 开启 **启用 Bevy 场景渲染器**.

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

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

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)

参见 [场景设置](/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)

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

## 另请参阅

* 参见 [场景编辑器基本要点](/creator/content-creator-zh/chang-jing-bian-ji-qi/kai-shi-shi-yong/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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
