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.
Last updated
Was this helpful?