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

# MappingManager

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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://multiset.gitbook.io/multiset/unity-sdk/api-reference/mappingmanager.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
