> 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 桥接

World Creator 到 Godot 的桥接器使您能够轻松地将地形创作导入 Godot 以用于您的游戏项目。目前该桥接器仅支持地形同步，对象支持将在未来添加。&#x20;

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

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

## **安装**

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

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

## **参数**

* **同步 XML**

  定位所需同步项目的 .xml 文件。对于 WC 22 及以上版本，此文件默认位于 *\[User]*\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:

```
GET https://docs.world-creator.com/zh/can-kao/export/bridge-tools/godot-qiao-jie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
