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.
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.