i wanna make a snapshot function in unity
the function letting users “take photo” in the 3D environment
however, i can’t find any documentation that i can capture the frame buffer (or i missed)
can anyone offer me a solution?
i wanna make a snapshot function in unity
the function letting users “take photo” in the 3D environment
however, i can’t find any documentation that i can capture the frame buffer (or i missed)
can anyone offer me a solution?
Look at the documentation for WaitForEndOfFrame(); The example code is for taking a screenshot:
thank you very much
this is what i want ![]()
Now there’s Application.CaptureScreenshot that does it all for you.
You just have to set up the file path using the Mono calls for saving the file.[/url]
Good point – and if you are saving the image just like in the example, that is a lot faster to type. What I like about that wiki example, though, is that it is so basic that at a glance you can see what part of the script is creating what intended effect. As a result, it is really easy to see the structure that you would need to modify to do something else (take multiple pictures and stitch them together, for example)