Is there a way to take a screenshot of the screen, but excluding the HUD / CanvasLayers?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cardoso
:warning: Old Version Published before Godot 3 was released.

I would like to take a screenshot of the screen, but only the level itself, and not the HUD / CanvasLayers.
Is it possible?

This would be for the purpose of capturing a game shot while the game is on pause - a pause menu is visible, which I 'd like to exclude).

I though of hiding the pause menu on the moment of the screenshot, but this would probable cause a ‘blink’ noticeable to the player/user, no?


Maybe you could draw the level itself in a separate Viewport and then use queue_screen_capture() on that Viewport.

mollusca | 2017-11-21 09:00

Thanks, it does seem like the only way to go for this case.

cardoso | 2017-11-21 20:40