webcamtextur or texture 2D

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
2361621--160205--Sfitphoto_2015-10-30_09-16-58.jpg

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);

WebCamTexture is not how you take a screenshot. There are three good ways to do so here, of which Application.CaptureScreenshot is by far the easiest.

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 need both, 1 I display it at my screen, then after that I can take screenshoot what my screen camear display

why did this thread die? sounds like what I’m looking for. I know webcam is 2d but want to save webcamtexture live video

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.