I would like to know have anyone come across this issue. Below is my autofocus C# code. I have tested in other phone and it work, however in samsung S7 the focus seems like not working. May I know is there any other way, or anyone have tried to make it work?
void Start() { OnSingleTapped(); } // Update is called once per frame void Update() { // quiting the Application if (Input.GetKey(KeyCode.Escape)) { Application.Quit(); } OnSingleTapped(); } private void OnSingleTapped() { TriggerAutoFocus(); } public void TriggerAutoFocus() { StartCoroutine(TriggerAutoFocusAndEnableContinuousFocusIfSet()); } private IEnumerator TriggerAutoFocusAndEnableContinuousFocusIfSet() { yield return new WaitForSeconds(0.5f); CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO); }
your help is highly appreciate. Thanks.
I have an error