<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ObjectCapturePointCloudView/showShotLocations(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "SwiftUI",
      "_RealityKit_SwiftUI"
    ],
    "preciseIdentifier" : "s:19_RealityKit_SwiftUI27ObjectCapturePointCloudViewV17showShotLocationsyACSbF"
  },
  "title" : "showShotLocations(_:)"
}
-->

# showShotLocations(_:)

Shows the locations where shots have been taken.
Example:
ObjectCapturePointCloudView(session: mySession)
.showShotLocations()

```
@MainActor func showShotLocations(_ value: Bool = true) -> ObjectCapturePointCloudView
```

## Discussion

It can also be passed a value if there is a state variable controlling it:

ObjectCapturePointCloudView(session: mySession)
.showShotLocations(shouldShowShots)

Other modifiers can be chained to build the final view:
ObjectCapturePointCloudView(session: mySession)
.showShotLocations()
.transition(.opacity)

---

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)