# Unity ブリッジ

World Creator Bridge for Unity を使うと、作成した地形をゲームプロジェクトで使用するために Unity に簡単にインポートできます。

## **インストール**

Unity を開き、ダウンロードしたブリッジファイル内の .unitypackage を、Assets/Import Package/Custom Package... メニューを使うか、Unity の Project ビューにドラッグ＆ドロップしてインポートします。

Bridge ダイアログにアクセスするには、Window/World Creator Bridge に移動します。

## **パラメータ**

* **Bridge .xml ファイルを選択**

  目的の同期プロジェクトの .xml ファイルを見つけます。WC 22 以降では、このファイルはデフォルトで次の場所にあります *\[User]*\Documents\World Creator\Sync\\

* **Terrain アセット名**

  ブリッジによって作成されるすべての terrain ゲームオブジェクトのプレフィックスを指定します。

* **未使用アセットを削除**

  未使用のアセットは同期時に自動的に削除されます。

* **レイヤーをインポート**

  生成されるマテリアルに個別の terrain レイヤーを使用するか、ベイクされたカラーマップを使用するかを切り替えます。

* **分割しきい値**

  Unity における地形タイルのグリッドサイズを設定します。分割しきい値を大きくするとタイル数は減少します。

* **ワールドスケール**

  地形のスケーリング係数を指定します。

* **マテリアルタイプ**

  Unity プロジェクトのレンダーパイプラインを選択するか、カスタムマテリアルを使用します。

## **ワークフロー例**

この例では、地形を Unity に転送します。World Creator に付属する Canyon サンプルファイルを使用します。これらの手順は他の World Creator プロジェクトにも適用できます。

### **World Creator から同期**

メインパネル上部のアプリケーションバーにある同期ボタンをクリックして、必要なすべてのデータを World Creator から自動的にエクスポートします。

<figure><img src="/files/3843d88af380d24c7e7ddc395c0458218276415b" alt=""><figcaption><p><em>同期前の World Creator シーン</em></p></figcaption></figure>

### **Unity に同期**

の下で **Window/World Creator Bridge**Bridge ダイアログウィンドウを開きます。

適切な **マテリアルタイプ** をプロジェクトのレンダーパイプラインに基づいて選択します。ここでは Built-In RP を使用しているため、を **Standard**.

押すと、 **Synchronize** ボタンを押すと、地形がシーンにロードされます。

<figure><img src="/files/76b8ef94c734fffba5228aa5dc92db0d0357fa91" alt=""><figcaption><p><em>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/ja/rifarensu/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.
