How can I set the button On the babylonjs to get the Screen Shot?

Hello everyone

how can I set a button to take a screen shot?
here is my PG:
and I want to get the screen shot from the BJS scene when I push the Screen Shot button, is it possible to help me

See The Babylon GUI | Babylon.js Documentation, there are examples at the start of the doc of clickable buttons.

To create screenshots: Render Scenes To .png Files | Babylon.js Documentation

1 Like

Thanks a lot @Evgeni_Popov