Some1 help me with this, I have this C# script but when I tak the screenshoot and save it to my folder, the picture become weird, what’s wrong with my script ?? help please
int width = Screen.width;
int height = Scree.height;
mCamera = new WebCamTexture (Screen.width, Screen.height, 60);
layar.GetComponent<Renderer>().material.mainTexture = mCamera;
filename = "Sfitphoto_" + System.DateTime.Now.ToString("yyyy-MM-dd") + System.DateTime.Now.ToString("_hh-mm-ss");
Texture2D snap = new Texture2D (width, height);
I need it to play live from my device camera, so webcamtexture it’s not the way ?? Because I see some tutorial use webcamtexture. Can u tell me why webcamtexture cant to take ss ??
Oh, you said you were taking a screenshot, that’s a different thing entirely from a webcam. So do you need to get the device’s camera displayed on the screen, or are you trying to save it to a file?
I will strongly advise you to consider NatCam. It captures actual high-res photos (8 megapixels and up) from the camera and has tons of other features. It also offers an easy way to capture the current frame of the camera preview.