<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ObjectCaptureSession/numberOfShotsTaken",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI20ObjectCaptureSessionC18numberOfShotsTakenSivp"
  },
  "title" : "numberOfShotsTaken"
}
-->

# numberOfShotsTaken

The number of shots taken in the entire capture session so far, including both automatic capture and
manual capture.

```
@MainActor var numberOfShotsTaken: Int { get }
```

## Discussion

This number includes shots from all scan passes, flipped or unflipped.  It can be directly compared to the
`maximumNumberOfInputImages` to keep track of the
memory limits required for reconstruction of this session on-device and whether over-capture mode limits are reached
for a given session.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)