---
title: stopTrackedRaycasts
framework: arkit
role: symbol
role_heading: Type Property
path: arkit/arsession/runoptions/stoptrackedraycasts
---

# stopTrackedRaycasts

An option to stop all active tracked raycasts.

## Declaration

```swift
static var stopTrackedRaycasts: ARSession.RunOptions { get }
```

## Discussion

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

- [resetTracking](arkit/arsession/runoptions/resettracking.md)
- [removeExistingAnchors](arkit/arsession/runoptions/removeexistinganchors.md)
- [resetSceneReconstruction](arkit/arsession/runoptions/resetscenereconstruction.md)
