Hi.
I want to take a screenshot with my UI. Currently, I can make a screenshot of the scene without UI(HTML, CSS).
Can I do it or I need some plugin?
Thanks.
Ηι @Nazar_Semets,
That’s possible to do easily when using the Playcanvas UI, since the elements are part of the same canvas.
But when using HTML/CSS for interface that can get tricky. You will have to use two different pipelines and combine the end result to get what you want:
- Grab a screenshot of the scene, as you already do.
- Use a Javascript library, like Html2Canvas, to grab a screenshot of your UI elements.
Use a Canvas element to overlay both screenshots and grab the final combined screenshot.