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.
Thats interesting, Try with
Thats interesting, Try with this script which I have been using for my apps without any problems
private bool mVuforiaStarted = false;
void Start ()
{
VuforiaBehaviour vuforia = (VuforiaBehaviour)FindObjectOfType(typeof(VuforiaBehaviour));
Thanks for your reply. Have
Thanks for your reply. Have tested your code, however the autofocus feature in the phone is still not really good. What I mean here is it does focus however it takes time, and yet the focus is not sharp enough as other tested phone, henceforth the content not able to pop up.
I have an errorĀ
I have an error