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: https://playground.babylonjs.com/#XCPP9Y#7034
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