Exemple #1
0
    void RenderToPanel(RawImage image, byte[] inputBytes)
    {
        Vector2   dims = CameraCapture.GetDimentions();
        Texture2D tex  = new Texture2D((int)(dims.x), (int)dims.y, TextureFormat.R8, true);

        tex.LoadImage(inputBytes);
        tex.Apply();
        image.texture = tex;
    }