# Screenshots | Sentry for Unreal Engine

Sentry makes it possible to automatically take a screenshot and include it as an [attachment](https://docs.sentry.io/platforms/unreal/enriching-events/attachments.md) when a user experiences an error, an exception or a crash.

This feature is only available for SDKs with a user interface, like the ones for mobile and desktop applications. It's also limited by whether taking a screenshot is possible or not. For example, in some environments, like native iOS, taking a screenshot requires the UI thread, which often isn't available in the event of a crash. Another example where a screenshot might not be available is when the event happens before the screen starts to load. So inherently, this feature is a best effort solution.

## [Enabling Screenshots](https://docs.sentry.io/.md#enabling-screenshots)

Because screenshots may contain [PII](https://docs.sentry.io/platforms/unreal/data-management/sensitive-data.md), they are an opt-in feature. You can enable screenshots as shown below:

Using the editor menu in **Project Settings > Plugins > Sentry**:

[![Options Screenshot Configuration](https://docs.sentry.io/_next/image/?url=%2Fmdx-images%2Fattach-screenshot-unreal-editor-D4MFYAP4.png%232479x1705\&w=3840\&q=75)](https://docs.sentry.io/mdx-images/attach-screenshot-unreal-editor-D4MFYAP4.png)

Or, like so, if you're [configuring things programatically](https://docs.sentry.io/platforms/unreal/configuration/options.md):

```cpp
USentrySettings* Settings = FSentryModule::Get().GetSettings();
Settings->AttachScreenshot = true;
```

Currently, this feature is supported for Windows and Linux only.

## [Screenshot Capture Mechanism](https://docs.sentry.io/.md#screenshot-capture-mechanism)

Since the Unreal Engine SDK consists of multiple SDKs, the specific mechanism with which a screenshot is captured will vary depending on where the error originated.

* On Windows/Linux, errors from within your game will be captured using the Unreal Engine API. This means that screenshots will only contain what's visible within your game. Any overlays on top of your game won't be visible.
* On Apple/Android, screenshots will be captured using platform APIs. If you're using a native plugin to display an overlay and an error occurs, the SDK will try to capture a screenshot that contains the overlay.

**Screenshots may contain PII.** For example, if your game has a registration form and an error occurs while the form is being displayed.

## [Viewing Screenshots](https://docs.sentry.io/.md#viewing-screenshots)

Once you've clicked on the event ID of a specific issue, you'll be able to see an overview of all the attachments as well as associated events in the "Attachments" tab.

[![Screenshots List Example](https://docs.sentry.io/_next/image/?url=%2Fmdx-images%2Fscreenshot-list-example-3BQV7G4N.png%231012x179\&w=2048\&q=75)](https://docs.sentry.io/mdx-images/screenshot-list-example-3BQV7G4N.png)
