Multiple screenshots of the same frame

Hi,

I’m trying to take multiple screenshots of the same frame. Once a key is pressed, the script will run and capture the screens.

So the first screenshot contained all of the gameobjects.
The second screenshot captured the screen while disabled gameobjects with tag A.
the third one disable another one,
and so on.

Basically I want to write a script such that to mimic the action of pausing the game by pressing the pause button in the main bar, take screenshot, disable a gameobject, take another screenshot, and repeat, while maintaining the same frame.

Is there anyway to achieve this?

As far as I know your calls to functions will hold the program in the same frame until finished. It would be strange if you change a position of a gameobject onClick() and it changes it’s current position while reading it. So if you call a function onButtonPressed() you can get all the camera images. If you disable the gameobjects before rendering the screenshot i think they won’t appear. I have not tested this though so I’m not sure. I hope this will bring you in the right direction.

The screenshot capture itself is explained in the following 1.