---
title: "showShotLocations(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/objectcapturepointcloudview/showshotlocations(_:)"
---

# showShotLocations(_:)

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

## Declaration

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

## Discussion

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)
