ARLocationManager
↳ extends ARVps2Manager
Declaration
public class ARLocationManager : ARVps2ManagerSummary
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
| Name | Type | Summary |
|---|---|---|
| readonly AnchorToARLocationMap | Dictionary<ARVps2Anchor, ARLocation> | Get all the active ARVps2Anchors created by ARLocationManager |
| readonly ARLocations | ARLocation[] | Gets all of the ARLocations childed to the ARLocationManager. |
| readonly AutoTrack | bool | 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
| Name | Type | Summary |
|---|---|---|
| SetARLocations | void | Selects the AR Locations to try to track when StartARLocationTracking() is called. |
| StartARLocationTracking | void | 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. |
| StopARLocationTracking | void | Stops tracking all currently tracked locations. |