as a test, does it work in OBS like this:
if so, then you can get it into Unity as a virtual cam
env
test script. Note that I am manually finding the THETA UVC in the list of cameras and then changing the value of devices[NUMBER]
You need to adjust devices[4]
to the value of UVC on your system.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
public Color color1 = Color.white;
void Start()
{
WebCamDevice[] devices = WebCamTexture.devices;
Debug.Log("number of web cams connected: " + devices.Length);
for ( int i = 0; i < devices.Length; i++) {
string camName = devices[i].name;
Debug.Log("webcam device " + i + " is " + camName);
}
Renderer rend = this.GetComponentInChildren<Renderer>();
WebCamTexture mycam = new WebCamTexture();
string thetaName = devices[4].name;
Debug.Log("The webcam name is " + thetaName);
mycam.deviceName = thetaName;
rend.material.mainTexture = mycam;
mycam.Play();
}
// Update is called once per frame
void Update()
{
}
}