Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (canGetImage)
        {
            int width = 0, height = 0;

            webcam.GetColorImage(ref pixelPtr, ref width, ref height);
            Debug.Log("width : " + width + " and height : " + height);
            tex.SetPixels32(pixel32);
            tex.Apply();
        }
    }