editor_camera_screenshot
Capture a PNG from a chosen camera, even with the editor covered or minimized, in play or edit mode. Renders the 3D scene with post effects and no UI.
Instructions
Renders a camera into its own render target and saves a PNG. It does not read an editor window, so it works with the editor covered, small or minimised, in play mode and in edit mode. Camera: the given Camera actor. Without one: the main camera in play mode, else the editor viewport's view. The picture shows the 3D scene with the game's post effects, without editor or screen-space UI. Not available in headless mode. Replaces an existing file. Read the PNG to see it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or current-working-directory-relative output path ending in .png. The folder must exist. | |
| width | No | Picture width in pixels, 16..8192. | |
| height | No | Picture height in pixels, 16..8192. | |
| cameraId | No | A Camera actor's id (from editor_scene_graph or editor_find_actors). Empty: the main camera in play mode, else the editor viewport's view. | |
| warmUpFrames | No | Frames the camera renders before the capture, 1..60, so that auto exposure settles. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes | Yes | ||
| width | Yes | ||
| camera | Yes | ||
| height | Yes | ||
| isPlayMode | Yes |