# Unity Bridge

The World Creator Bridge for Unity enables you to effortlessly import your terrain creations into Unity for use in your game projects.

## **Installation**

Open Unity and import the .unitypackage found in the downloaded bridge file either by using the Assets/Import Package/Custom Package... menu or by dragging and dropping it into the Project view in Unity.

To access the Bridge dialog, navigate to Window/World Creator Bridge.

## **Parameters**

* **Select Bridge .xml File**

  Locate the .xml file for the desired sync project. For WC 22 and above, this file is located by default at *\[User]*\Documents\World Creator\Sync\\

* **Terrain Asset Name**

  Specify the prefix for all terrain gameobjects created by the bridge.

* **Delete unused Assets**

  Unused assets are automatically removed upon synchronization.

* **Import Layers**

  Toggle between using individual terrain layers or a baked color map in the generated materials.

* **Split Threshold**

  Sets the grid size of the terrain tiles in Unity. Increasing the split threshold reduces the number of tiles.

* **World Scale**

  Specifies the scaling factor for the terrain.

* **Material Type**

  Choose the rendering pipeline of your Unity project or utilize a custom material.

## **Workflow Example**

In this example, we will transfer our terrain into Unity. The Canyon sample file that comes with World Creator will be used. These steps can be applied to any other World Creator project.

### **Sync from World Creator**

Click the sync button in the application bar at the top of the main panel to export all necessary data from World Creator automatically.

<figure><img src="/files/nKh2mgKnRMN31IsfGk88" alt=""><figcaption><p><em>The World Creator scene before the sync</em></p></figcaption></figure>

### **Sync into Unity**

Under **Window/World Creator Bridge**, open the Bridge dialog window.

Choose the appropriate **Material Type** based on your project's render pipeline. For our case, as we are using the Built-In RP, we need to configure it to **Standard**.

Once you press the **Synchronize** button, the terrain will be loaded into the scene.

<figure><img src="/files/mHrIf8yoIhc2mKZZmPyp" alt=""><figcaption><p><em>Synced terrain in Unity</em></p></figcaption></figure>


---

# Agent Instructions: 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/reference/export/bridge-tools/unity-bridge.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.
