- Home /
Question by
alless · Feb 16, 2014 at 05:55 PM ·
textureinstantiatewebcamtexturewebcam
WebCamTexture not working on Instance objects
Hi, I'm trying to give WebCamTexture to some Boxes (Instantiated) it works on Simple Cubes but when I Instantiate those Cubes It shows them All Black .
Here's the Webcam Function :
void Start() {
WebCamTexture webcamTexture = new WebCamTexture();
renderer.material.mainTexture = webcamTexture;
webcamTexture.Play();
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613133722im_/https://answers.unity.com/themes/thub/images/avi.jpg)