Skip to content

Improve messaging when taking screenshots if unsupported #1043

@nwhite-riot

Description

@nwhite-riot

Not all platforms support taking screenshots, so it'd be useful to improve the debug messaging etc. instead of what we currently have here:

if (!(IsInGameThread() || IsInSlateThread()))
{
UE_LOG(LogSentrySdk, Error, TEXT("Can't take a screenshot when not in the game thread or slate thread"));
return false;
}

Perhaps we can have a CanTakeScreenshot() method and then log "unsupported platform" or something, or even omit the attempt to capture screenshot if it isn't supported.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions