I have 2 webcams, both work on discord so I know they work. On one webcam, unity detects it, but I get "ERROR - Could not find specified video device", even if I set "deviceName" to it's name.
The other one, unity doesn't even detect.
The one that unity detects is a virtual web cam for obs, and the other one is a ps3 eye camera (i use cl eye driver)
I have windows 7, and am using latest unity version.
edit - i switched back to a 32bit version of unity and the ps3 eye camera is detected now, but it just shows black in unity. and the obs virtual camera gives the same error
my code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CamTest : MonoBehaviour
{
static WebCamTexture webCam;
void Start()
{webCam = new WebCamTexture();
GetComponent().material.mainTexture=webCam;
webCam.Play();
Debug.Log(WebCamTexture.devices.Length);
for (int i=0; i
↧