- Home /
Switching between front/back device cameras and saving screenshot to photo album
H! I am developing C# code for an iPhone augmented reality app. My code needs to choose between the front-facing camera and the back-facing camera, and then grab a screenshot and save it to the photo album.
I understand that Application.CaptureScreenshot( Application.dataPath + "Screenshot.png" );
saves the screenshot as an image (in some mysterious location). Anyway, how do I choose between the two cameras? I can see that WebCamDevice[] devices = WebCamTexture.devices;
gives me a list of the available cameras, but how do I specify ONE of these cameras to be used for the screen capture?
Secondly...I notice many people asking how to find where the screen-captured image can be found. People are saying that it drops it into a documents folder. I want it in the Photo album. Do I have to make this specification in XCode? I can do that if I have to, but if there's an easier way through Unity, I'd prefer that.
Thanks!
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How to make a WebCamTexture 'run'? 0 Answers
Distribute terrain in zones 3 Answers
move the object where camera look 0 Answers