错误 CS0103:当前上下文中不存在名称"网络摄像头纹理"



当我用WebRTCVidechat将我的项目构建到magicleap硬件时,它会中止操作并发送一条日志错误消息,说";AssetsWebRtcVideoChatscriptsUnityCallFactory.cs(1073,37): error CS0103: The name 'WebCamTexture' does not exist in the current context";。

在生成之前不会出现复制错误。

部分代码:

using UnityEngine;
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
...
foreach (var dev in WebCamTexture.devices)
{
if (deviceName == dev.name)
{
if (dev.isFrontFacing)
{
return true;
}
else
{
return false;
}
}
}

日志:

Assets\WebRtcVideoChat\scripts\UnityCallFactory.cs(1073,37(:错误CS0103:当前上下文中不存在名称"WebCamTexture"。

错误CS0103:名称"WebCamTexture"在当前上下文中不存在"这是由于与我为(MagicLeap(构建的平台不兼容造成的。

我没有找到任何解决方案。

最新更新