Hello,
I would like to use Full camera screen for my gameplay area.
I am getting error in my webcam scripts.
Here is my code
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class webcamC : MonoBehaviour {
GameObject cube;
WebCamTexture web;
// Use this for initialization
void Start () {
web = new WebCamTexture ();
cube.texture = web;
cube.material.MainTexture = web;
web.Play ();
}
// Update is called once per frame
void Update () {
}
}