Contents

stopTrackedRaycasts

An option to stop all active tracked raycasts.

Declaration

static var stopTrackedRaycasts: ARSession.RunOptions { get }

Discussion

By default, when you call the run(_:options:) method on a session that is running or has run before, the session keeps tracking any ARTrackedRaycast objects that you previously added by calling trackedRaycast(_:updateHandler:).

Use stopTrackedRaycasts if you want to stop all active tracked raycasts. Alternatively, you can stop individual raycasts by calling stopTracking() on individual raycasts.

See Also

Run Options