# Editor

Use the **MeshMap Scan Importer** editor window to view, import, and load scans into Unity.

Having access to highly detailed scans is helpful for knowing where to place `GameObject`s when designing location-based XR experiences.

{% hint style="success" %}
Currently, only .glb/.gltf files are supported.
{% endhint %}

## Usage

1. Make sure to [configure your app API key in the MeshMap Hub](https://docs.meshmap.com/unity-sdk/core/..#api-key) and [connect to your MeshMap account](https://docs.meshmap.com/unity-sdk/core/auth/editor).
2. Open the editor window via `MeshMap > Scan Importer`.
3. Load the scans data.
   1. Select "Get User Scans" to load public and private scans from your MeshMap account.
   2. Select "Get Public Scans" to load all public scans.
4. Select "Import" next to any supported filetypes.

<figure><img src="https://1186324960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWEOieFcrCdoaTX1LuCOI%2Fuploads%2FOJazQ0DXPPtY3Pi3mfVS%2FScanImporter1.png?alt=media&#x26;token=8a6ae4e2-6a08-468e-9b82-5a6372830d3a" alt=""><figcaption><p>Scan Importer editor window.</p></figcaption></figure>

4. Scans are imported to `Assets/Resources/MeshMap/Scans/`.

<figure><img src="https://1186324960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWEOieFcrCdoaTX1LuCOI%2Fuploads%2FSJ9gaazfvhJPPuUbE3vZ%2FScanImporter2.png?alt=media&#x26;token=014b3821-a006-4ec4-b568-6bf31a1d0c84" alt=""><figcaption><p>Scan Downloaded popup window.</p></figcaption></figure>

5. Select "Add to Scene" to automatically load the scan `GameObject` into the active scene.

<figure><img src="https://1186324960-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWEOieFcrCdoaTX1LuCOI%2Fuploads%2FW8z7pjsAEAOkfteXvcM3%2FScanImporter3.png?alt=media&#x26;token=1a59a386-f568-4f94-b8e6-fb7494dc2d48" alt=""><figcaption><p>Example scan of Washington Square Park loaded in the scene.</p></figcaption></figure>

6. You can now use the scan as a reference to design location-based XR experiences. See [Mapping](https://docs.meshmap.com/contribute/mapping) for tips on how to capture your own realistic scans.
