# Unity API References

{% content-ref url="/spaces/3UKy7VHRJWrNarYaMp13" %}
[Blippar Documentation Centre](https://docs.blippar.com/blippar-documentation-centre/)
{% 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.blippar.com/webar-sdk/v.1.7.0/integrations/unity-integration/unity-api-references.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
