Example of doing screenshots with only one camera

Following this twitter thread: https://twitter.com/imkarthik1997/status/1488915614454333443

The user wanted an example of taking a screenshot with the same camera that’s rendering the game instead of maintaining a second camera.

Here’s the modified fork: https://twitter.com/imkarthik1997/status/1488915614454333443

It takes a list of layer names to render for the screenshot and swaps them on the camera when taking the screenshot.

2 Likes