I want my webcam to look like a mirror, so if i lift the right arm it should look like the left arm.
I applied the following script to a 3d Object, a Quad.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class WebCam1 : MonoBehaviour
{
private WebCamTexture webcamTexture;
void Start()
{
webcamTexture = new WebCamTexture();
Renderer renderer = GetComponent();
renderer.material.mainTexture = webcamTexture;
webcamTexture.Play();
}
}
↧