> For the complete documentation index, see [llms.txt](https://docs.multiset.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.multiset.ai/unity-sdk/ar-foundation/api-reference/mappingmanager.md).

# MappingManager

The Unity component that drives in-app area scanning, from capture through compression to upload.

The MappingManager class is the central component for handling 3D area scanning in the Mapping sample scene. It manages the entire workflow, from starting and stopping the scanning process to handling data capture, compression, and uploading to the Multiset cloud.

**Namespace:** MultiSet\
**Inherits from:** MonoBehaviour

**Public Properties**

| Name      | Type | Description                                                                                                                     |
| --------- | ---- | ------------------------------------------------------------------------------------------------------------------------------- |
| isMapping | bool | A boolean flag that indicates whether the mapping process is currently active. true if mapping is in progress, otherwise false. |

**Public Methods**

| Name             | Return Type | Description                                                                                                                                                                                             |
| ---------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| StartMapping()   | void        | Begins the mapping process. This method sets up the necessary directories, generates a new session ID, and resets the AR session to start capturing data.                                               |
| StopMapping()    | void        | Stops the current mapping process. It disables meshing and initiates the flow to compress the captured data into a zip file.                                                                            |
| UploadMapData()  | void        | Validates the map name from the input field and initiates the upload process. It first saves the map as a draft and then sends a request to the MultiSet API to create a map entry and upload the data. |
| MakeMapDraft()   | void        | Saves the captured map data as a draft on the local device. This allows the user to upload the map at a later time.                                                                                     |
| ClearARSession() | void        | Resets the AR session. This can be used to clear the current session state and restart tracking.                                                                                                        |
| ReloadScene()    | void        | Reloads the current Unity scene, effectively resetting the mapping experience to its initial state.                                                                                                     |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.multiset.ai/unity-sdk/ar-foundation/api-reference/mappingmanager.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
