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

ARLocationManager

↳ extends ARVps2Manager

Declaration

public class ARLocationManager : ARVps2Manager

Summary

The ARLocationManager is used to track ARLocations. ARLocations tie digital content to the physical world. When you start tracking an ARLocation, and aim your phone's camera at the physical location, the digital content that you child to the ARLocation will appear in the physical world.


Properties

NameTypeSummary
readonly AnchorToARLocationMapDictionary<ARVps2Anchor, ARLocation>
Get all the active ARVps2Anchors created by ARLocationManager
readonly ARLocationsARLocation[]
Gets all of the ARLocations childed to the ARLocationManager.
readonly AutoTrackbool
Whether or not to automatically start tracking the selected ARLocation.
If true, the location that is currently enabled will be automatically tracked on Start.

Methods

NameTypeSummary
SetARLocationsvoid
Selects the AR Locations to try to track when StartARLocationTracking() is called.
StartARLocationTrackingvoid
Starts tracking locations specified by SetARLocations() or set in Unity Editor
Content authored as children of the ARLocation will be enabled once the ARLocation becomes tracked.
This will create digital content in the physical world.
If no locations were specified in SetARLocations(), requests will be made to attempt to track nearby
locations. In this case, multiple nearby locations may be targeted and the first one to successfully
track will be used.
StopARLocationTrackingvoid
Stops tracking all currently tracked locations.