Runtime
Method Calls
ScanInfoLoader.FetchAndWrapUserScansInfoAsync
ScanInfoLoader.FetchAndWrapAllScansInfoAsync
ScanLoader.LoadScanAsync
Events
ScanInfoLoader.OnInfoLoaded (user's scans)
ScanInfoLoader.OnAllInfoLoaded (all public scans)
ScanInfoLoader.OnInfoFailed
ScanLoader.OnScanLoaded
ScanLoader.OnScanFailed
ScanLoader.OnScanDestroyed
Getting Started
The easiest way to get started is to import the Auto and Scan Import sample into your Unity project. Go to Windows > Package Manager > MeshMap Unity SDK > Samples
.
Make sure to configure your API key in the MeshMap Hub
Features
A simple user flow for loading user scans and all public scans.
The player needs to be connected to their MeshMap account (see Auth - Runtime).
Import any scan with a supported file type (.gltf/.glb) and load it to the active scene.
Optionally, add a
NavMeshModifier
to the scan model and rebuild theNavMeshSurface
in the scene.Destroy the previous scan from the scene when importing a new scan.
Components
Loads scan information asynchronously from the MeshMap Scans API.
Displays metadata for a single scan entry in the UI, including its name, location, and user information.
Handles the loading, instantiation, and cleanup of scan models in the active scene.
Handles UI logic for listing, paginating, filtering, and loading scans from the MeshMap API. Provides controls to request user or public scans, validate pagination input, and display scan listings dynamically.
Automatically builds or clears NavMesh
data at runtime
when a scan is loaded or destroyed.
Last updated