Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/unity3d/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unity3d Vuforia在后台停止视频_Unity3d_Augmented Reality_Vuforia - Fatal编程技术网

Unity3d Vuforia在后台停止视频

Unity3d Vuforia在后台停止视频,unity3d,augmented-reality,vuforia,Unity3d,Augmented Reality,Vuforia,我正在使用Unity和Meta 2眼镜构建AR项目。当我将Vuforia包添加到项目中并运行它时,我使用Vuforia来检测对象,就像在后台看到视频一样。它太分散注意力了,无法使其失效 有没有关于如何禁用它的线索?除非您的Vuforia版本能够识别您的特定AR设备,否则Vuforia会认为它是一部手机并呈现视频背景。你所要做的就是不渲染视频背景 在这里,您可以找到有关如何禁用Unity中背景渲染的确切说明: 重要的代码是: BackgroundPlaneBehaviour bgPlane =

我正在使用Unity和Meta 2眼镜构建AR项目。当我将Vuforia包添加到项目中并运行它时,我使用Vuforia来检测对象,就像在后台看到视频一样。它太分散注意力了,无法使其失效


有没有关于如何禁用它的线索?

除非您的Vuforia版本能够识别您的特定AR设备,否则Vuforia会认为它是一部手机并呈现视频背景。你所要做的就是不渲染视频背景

在这里,您可以找到有关如何禁用Unity中背景渲染的确切说明:

重要的代码是:

BackgroundPlaneBehaviour bgPlane = GetComponent<BackgroundPlaneBehaviour> ();
if (bgPlane.enabled) {
    bgPlane.enabled = false;
}
backgroundplane=GetComponent();
如果(bgPlane.enabled){
bgPlane.enabled=false;
}