Skip to main content
API Reference NianticSpatial.NSDK.AR.Mapping

ARDeviceMappingManager

↳ extends UnityEngine.XR.ARFoundation.SubsystemLifecycleManager
ARDeviceMappingManager can be used to create and manage maps on the local device.

Declaration

public class ARDeviceMappingManager : SubsystemLifecycleManager<XRDeviceMappingSubsystem, XRDeviceMappingSubsystemDescriptor, Provider>

Properties

NameTypeSummary
readonly IsMappingInProgressbool
A state if mapping is in progress or not. True is mapping is ongoing. Becomes false after calling StopMapping()
MappingSplitterMaxDistanceMetersfloat
Property access for map splitting criteria by distance
MappingSplitterMaxDurationSecondsfloat
Property access for map splitting criteria by time
MappingTargetFrameRateuint
Property access for mapping speed
readonly RootAnchorPayloadstring
Get the root anchor payload if one has been created (as base64-encoded string).

Methods

NameTypeSummary
ClearMapvoid
-
ExtractMapMetadataFromRootAnchorbool
Extract the metadata from a map relative to the stored root anchor.
StartMappingvoid
Start map generation
StopMappingvoid
Stop map generation
TryGetMapDatabool
-

Events

NameTypeSummary
MapFinalizedAction<byte[]>
An event when device map is finalized and ready to save
MapUpdatedAction<byte[]>
An event when device map data has been updated. The surfaced map contains only the parts of the map that
were updated since the last time this event was invoked. Use TryGetMapData to get the entire map.