> For the complete documentation index, see [llms.txt](https://docs.blippar.com/webar-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blippar.com/webar-sdk/v.1.7.0/integrations/unity-integration/unity-api-references.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
