Beispiel #1
0
    public void LoadTexture()
    {
        //Texture2D tex = VideoCapture.LoadCapturePngByIO(Application.streamingAssetsPath + "/", "SaveImage");
        Texture2D tex = VideoCaptureHelper.LoadCapturePngByIO(Application.streamingAssetsPath + "/", "SaveImage");

        DisplayImage.texture = tex;
    }
Beispiel #2
0
    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"));
    }