public void LoadTexture() { //Texture2D tex = VideoCapture.LoadCapturePngByIO(Application.streamingAssetsPath + "/", "SaveImage"); Texture2D tex = VideoCaptureHelper.LoadCapturePngByIO(Application.streamingAssetsPath + "/", "SaveImage"); DisplayImage.texture = tex; }
public void SaveTexture() { Texture2D tex = SaveImage.texture as Texture2D; //VideoCapture.CaptureToPng(tex, Application.streamingAssetsPath + "/", "SaveImage"); //VideoCapture.CaptureToJpg(tex, Application.streamingAssetsPath + "/", "SaveImage"); StartCoroutine(VideoCaptureHelper.CaptureScreenToPng(Camera.allCameras, Application.streamingAssetsPath + "/", "SaveImage")); }