Unity3D avoid camera autofocus Android

0 votes
asked Nov 24 by dudisitchy (140 points)
Hi, is there a way to config camera from easyAR - Unity3D to turn off the auto-focus on Android ???

Thanks !!!!

1 Answer

0 votes
answered Nov 28 by albert52 (9,820 points)
commented 5 days ago by dudisitchy (140 points)
Hi, thanks for the answer.

I tried this on ARBuilder.cs:

public void Start()
{
     foreach (var behaviour in CameraDeviceBehaviours)
     {
          behaviour.OpenAndStart();
      behaviour.Device.SetFocusMode (CameraDevice.FocusMode.Normal);
     }
}

But the auto focus remains.

Can you help me?

Thanks !!!
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...