<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhotogrammetrySample/scanPassID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20PhotogrammetrySampleV10scanPassIDSiSgvp"
  },
  "title" : "scanPassID"
}
-->

# scanPassID

If captured with `ObjectCaptureSession`, this will contain the ID of the scan pass within the given `sessionID` in which
this sample was captured.  Each new scan pass within a specific `sessionID` will have a different `scanPassID` which can be used to
differentiate any associated `boundingBox` data since a new bounding box may have been created after flipping an object
and starting a new pass.
Note that `scanPassID` can only be equated if the `sessionID` is the same – if the `sessionID` of two samples is
different but the `scanPassID` is the same, these are semantically different coordinate systems and data between them is not
commensurate.
Note that for samples not captured with `ObjectCaptureSession` (where `sessionID` is `nil`), this `scanPassID` is also `nil`.

```
var scanPassID: Int? { get }
```

---

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)