WebAR SDK
v1.7.0
v1.7.0
  • Introduction
  • GETTING STARTED
    • SignUp and Get a License
    • Manage Your Licenses
    • Download WebAR SDK
    • Installing WebAR SDK
  • INTEGRATIONS
    • A-frame Integration
      • Build a Basic Surface Tracking Experience
      • Build a Marker Tracking Experience
      • Build an Advanced Portal Experience
      • Build a Basic Face Tracking Experience
    • Babylon.Js Integration
      • Build a Basic Surface Tracking Experience
      • Build a Basic Marker Tracking Experience
    • Unity Integration
      • Package Installation
      • Build a Basic Surface Tracking Experience
      • Build a Basic Marker Tracking Experience
      • Customize Loading Screen
      • Rotate and Zoom
      • Use Cases
      • Unity API References
      • Unity Build Settings
      • Unity Screenshot Feature
    • PlayCanvas Integration
      • Build a Basic Surface Tracking Experience
      • Build a Basic Marker Tracking Experience
    • What Makes a Good Marker
  • API
    • API Reference - Javascript
      • A-frame Attributes
      • SDK Configuration Properties
      • Javascript Functions
    • API Reference - Unity(C#)
      • SDK Configuration Properties
      • C# Functions
    • Customization API
  • PUBLISH YOUR CREATION
    • Develop Locally
    • Launch the Experience
  • MORE INFORMATION
    • Pricing
    • FAQs
  • Support
    • Contact Support
Powered by GitBook
On this page
  • Introduction
  • API Reference
  1. INTEGRATIONS
  2. Unity Integration

Unity API References

The APIs listed are available in the WebAR SDK package

PreviousUse CasesNextUnity Build Settings

Last updated 1 year ago

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

  1. StartTracking:WEBARSDK.StartTracking() WEBARSDK.StartTracking(KeepARAfterLost)/

  2. StopTracking: WEBARSDK.StopTracking() ** WEBARSDK.**StopTracking(KeepARVisible) keepARVisible = true, keeps AR object visible after user stops tracking. Default value is false.

  3. ResetTracking: WEBARSDK.ResetTracking()

  4. Tracking Found/Lost: open event attached to the “webarManager” prefab, user can subscribe directly.

  5. TrackingStatus: WEBARSDK.GetTrackingStatus() Status: TRACKING, TRACKED, STOPPED

  6. DetectedMarkerID: WEBARSDK.GetDetectedMarkerID()\

  7. LostMarkerID: WEBARSDK.GetLostMarkerID()

  8. TrackingQuality: WEBARSDK.GetTrackingQuality() For surface tracking, Quality: HIGH, MEDIUM, LOW, LOST

  9. SelectedTracking: WEBARSDK.GetSelectedTracking()

  10. Disable AutoScale: WEBARSDK.DisableAutoScale()

Blippar Documentation Centre