I’m running into an issue where the editor crashes when attempting to use the WebCamTexture. I’ve based my script on some tutorials I’ve found on the web. Below is the c# code I’m using. Also, the script is attached to a GameObject with a GUITexture and the cameraTexture object is tied to that texture.
public class NativeCamera: MonoBehaviour {
public GUITexture cameraTexture;
public WebCamTexture webCamTexture;
void Start()
{
webCamTexture = new WebCamTexture();
cameraTexture.texture = webCamTexture;
webCamTexture.Play();
}
}
I just tried RawImage and received the same crash.
I didn’t receive an error, just a crash in the editor. Is there a dump or a log file somewhere I can look for, or is best way just to send bug using the Unity Bug Reporter?