+2 votes

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?

Thanks

in Engine by (386 points)

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

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.