> For the complete documentation index, see [llms.txt](https://docs.world-creator.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.world-creator.com/zh/can-kao/export/bridge-tools/godot-qiao-jie.md).

# Godot 桥接

Godot 的 World Creator Bridge 可让您轻松将地形创作导入 Godot，用于您的游戏项目。&#x20;

该桥接会自动从 World Creator 导入对象图层和材质图层，以便在 Godot 中进一步编辑/绘制，并根据 Terrain3D 的纹理要求打包纹理。&#x20;

{% hint style="info" %}
Terrain3D 使用不同的图层混合算法，会产生更锐利的过渡，因此在平滑混合方面，结果可能与您在 World Creator 中看到的有所不同。&#x20;
{% endhint %}

## **安装**

该桥接使用 [Terrain3D](https://tokisan.com/terrain3d/) 来显示地形。请确保已安装并启用它，否则桥接将无法工作。

将压缩包中的 wc\_bridge 文件夹放入您项目的 addons 子文件夹中，并在项目中启用它。

## **参数**

* **同步 XML**

  找到所需同步项目的 .xml 文件。对于 WC 22 及以上版本，此文件默认位于 *\[用户]*\Documents\World Creator\Sync\\

* **地形资产名称**

  指定导入时创建的地形对象和数据目录的名称。如果您想将两个地形导入同一项目而不覆盖先前的地形，这会很方便。

* **顶点间距**

  控制地形网格的顶点间距。数值越高，生成的顶点越少；数值越低，分辨率越高。

* **高度缩放**

  导入时缩放地形高度。

* **世界缩放**

  指定地形的缩放因子。

## **工作流程示例**

在此示例中，我们将把地形传输到 Godot。将使用 World Creator 自带的 Desert 001 示例文件。这些步骤同样适用于任何其他 World Creator 项目。

### **从 World Creator 同步**

点击主面板顶部应用栏中的同步按钮，即可自动从 World Creator 导出所有必要数据。

<figure><img src="/files/9ce2bf170eff6372d2d6d5ca8b8a91344c97127e" alt=""><figcaption><p><em>同步前的 World Creator 场景</em></p></figcaption></figure>

### **同步到 Godot**

在底部栏打开 Bridge 选项卡。按下 **同步地形** 按钮后，地形将被加载到场景中。

<figure><img src="/files/9a537b1dda323f1ac5a37f2879072269d0c2f646" alt=""><figcaption><p><em>同步到 Godot 中的地形</em></p></figcaption></figure>


---

# 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.world-creator.com/zh/can-kao/export/bridge-tools/godot-qiao-jie.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.
