Skip to main content
←API Reference ←NianticSpatial.NSDK.AR.VPS2 ←ARVps2Manager

TryGetLatestLocalization


Declaration​

public bool TryGetLatestLocalization(out XRVps2Localization localizationOut)

Summary​

Attempts to get the latest VPS2 localization, which carries the data required to
convert between the AR tracking space and geolocation.

Remarks​

The localization relates the AR session space origin to a geographic reference point;
it is not relative to the current camera pose. The geolocation fields are only valid while
TrackingState is not
Unavailable. The localized asset is independent of
the tracking state: an asset without a georeference is reported while the state
stays unavailable.

Returns​

true if the subsystem exists; otherwise false.

Parameters​

NameTypeSummary
localizationOutout XRVps2Localization
Receives the localization on success.