Skip to content

Screenshot extension

This extension lets you save a screenshot of the running game to a png file.

To use it, add an action and search for screenshot, or go to Other Actions/Screenshot/Take screenshot.

Warning

Saving screenshots only works on games exported for Windows, Linux and macOS (desktop). It relies on writing a file to the computer, which web browsers and mobile apps don't allow. The action has no effect on web and mobile games.

Actions

Take screenshot

Use this action to save a screenshot of everything which is currently drawn on the game window into a png file.

Parameters:

Save path: The file path where the screenshot should be saved.

It is recommended to use an absolute path on the file system (like "C:\MyFolder\MyScreenshot.png" on Windows).

If the path does not already end with .png, the extension automatically adds it for you.

Note

In order to create a game that runs on all supported platforms you should use the special folders from the file system extension in combination with the path separator. These determine the path to common folders like Pictures, Documents or Desktop automatically. You can read more about it in this article.

Example

This path:

<FileSystem::PicturesPath>() + <FileSystem::PathDelimiter>() + "my_screenshot.png"

This will save the screenshot to the Pictures folder on Windows, Linux and MacOS.

Reference

All actions, conditions and expressions are listed in the screenshot extension reference page.