Quantcast
Channel: Questions in topic: "webcam"
Viewing all articles
Browse latest Browse all 256

Unity freeze on WebCamTexture Play

$
0
0
Hi. I have a problem with WebCamTexture. public class ExampleClass : MonoBehaviour { void Start() { WebCamTexture webcamTexture = new WebCamTexture(); Renderer renderer = GetComponent(); renderer.material.mainTexture = webcamTexture; webcamTexture.Play(); } } This simple code make Unity freeze. So I guess Unity cannot access my laptop camera from some reason.

Viewing all articles
Browse latest Browse all 256


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>