Hi,
I'm pretty new to scripting in Unity. I'm trying to use insta 360 ONE RS camera as a webcam texture for skybox in Unity. I created a game object in Unity and attached this script to it-using UnityEngine;
public class getInsta360ONERS : MonoBehaviour {
static WebCamTexture Insta360ONERS;
string camName = "Insta360 ONE RS"; // Name of your camera.
public Material camMaterial; // Skybox material
void Start()
{
if (Insta360ONERS == null)
Insta360ONERS = new WebCamTexture(camName, 2880, 1440); // Resolution you want
if (!Insta360ONERS.isPlaying)
- Insta360ONERS.Play();
- if (camMaterial != null)
- camMaterial.mainTexture = Insta360ONERS;
- }
I am getting an error message "Cant find webcam device Intsa 360 ONE RS." Can someone help me fix this? My OBS software perfectly shows the live video from insta 360 so no problems there.
Thanks, Mano