void Start() { webcam = GameObject.Find("CameraInterface").GetComponent <Webcam>(); InitTexture(); rend.material.mainTexture = tex; webcam.InitiateDevice(); webcam.SetupCamera(); }