# Unity API References

{% content-ref url="<https://app.gitbook.com/o/QMsd5hT6sxA9FBIB03yh/s/3UKy7VHRJWrNarYaMp13/>" %}
[Blippar Documentation Centre](https://app.gitbook.com/o/QMsd5hT6sxA9FBIB03yh/s/3UKy7VHRJWrNarYaMp13/)
{% endcontent-ref %}

## Introduction <a href="#h_01gd0n3ebbv1gfj5agtvk8gqnd" id="h_01gd0n3ebbv1gfj5agtvk8gqnd"></a>

The WebAR’s functions are accessed through the global variable**WEBARSDK**, 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

1. StartTracking:<mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**StartTracking()**</mark>\ <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**StartTracking(KeepARAfterLost)/**</mark>
2. StopTracking: <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**StopTracking()**</mark>\
   \*\* <mark style="color:red;">**WEBARSDK**</mark>.\*\*<mark style="color:orange;">**StopTracking(KeepARVisible)**</mark>\
   keepARVisible = true, keeps AR object visible after user stops tracking. Default value is false.
3. ResetTracking: <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**ResetTracking()**</mark>
4. Tracking Found/Lost: open event attached to the “webarManager” prefab, user can subscribe directly.
5. TrackingStatus: <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**GetTrackingStatus()**</mark>\
   Status: TRACKING, TRACKED, STOPPED
6. DetectedMarkerID: <mark style="color:red;">**WEBARSDK.**</mark><mark style="color:orange;">**GetDetectedMarkerID()**</mark>\\
7. LostMarkerID: <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**GetLostMarkerID()**</mark>
8. TrackingQuality: <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**GetTrackingQuality()**</mark>\
   For surface tracking, Quality: HIGH, MEDIUM, LOW, LOST
9. SelectedTracking: <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**GetSelectedTracking()**</mark>
10. Disable AutoScale: <mark style="color:red;">**WEBARSDK**</mark>**.**<mark style="color:orange;">**DisableAutoScale()**</mark>
