Unity API References
The APIs listed are available in the WebAR SDK package
Introduction
The WebAR’s functions are accessed through the global variableWEBARSDK, which is available after the WebAR SDK script has been loaded. The following section provides information on the various API included in the unity package.
API Reference
StartTracking:WEBARSDK.StartTracking() WEBARSDK.StartTracking(KeepARAfterLost)/
StopTracking: WEBARSDK.StopTracking() WEBARSDK.StopTracking(KeepARVisible) keepARVisible = true, keeps AR object visible after user stops tracking. Default value is false.
ResetTracking: WEBARSDK.ResetTracking()
Tracking Found/Lost: open event attached to the “webarManager” prefab, user can subscribe directly.
TrackingStatus: WEBARSDK.GetTrackingStatus() Status: TRACKING, TRACKED, STOPPED
DetectedMarkerID: WEBARSDK.GetDetectedMarkerID()
LostMarkerID: WEBARSDK.GetLostMarkerID()
TrackingQuality: WEBARSDK.GetTrackingQuality() For surface tracking, Quality: HIGH, MEDIUM, LOW, LOST
SelectedTracking: WEBARSDK.GetSelectedTracking()
Disable AutoScale: WEBARSDK.DisableAutoScale()