使用EasyAR官方案例中的“HelloARMultiTarget-MultiTracker”。此案例中相机没有自动对焦功能,在CameraDeviceBehaviour.cs添加代码如下:
namespace EasyAR
{
public class CameraDeviceBehaviour : CameraDeviceBaseBehaviour
{
protected override void Start() {
base.Start();
SetFocusMode(FocusMode.Continousauto);//连续自动对焦模式
}
}
}
结果编译出现如下错误:
The name 'SetFocusMode' does not exist in the current context
The name 'FocusMode' does not exist in the current context
请教此问题如何解决,谢谢!