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