# 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="https://2837684122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM6zsxw2jbMYEZbKqEwpa%2Fuploads%2FUvwccwFp3frQSR6fSBf8%2Fwalkthrough_bridge_terrain.webp?alt=media&#x26;token=f208acd0-1a26-4e20-9532-4c722bc60871" 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="https://2837684122-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM6zsxw2jbMYEZbKqEwpa%2Fuploads%2F5Uz5ZjX1GgQFhGdWotyp%2Fwalkthrough_bridge_unity_01.webp?alt=media&#x26;token=4380200a-b324-4fb3-b895-d42f4ffb0733" alt=""><figcaption><p><em>Synced terrain in Unity</em></p></figcaption></figure>
