Search Unity

Question Disable camera auto focus

Discussion in 'Unity MARS' started by isoLABS, Mar 16, 2021.

  1. isoLABS

    isoLABS

    Joined:
    Mar 8, 2021
    Posts:
    2
    First time building an AR project for Android using MARS. Is it possible to disable auto focus of the camera? When I run builds on my device (Galaxy Tab S7) the auto focus causes the AR content I have placed in the space to shift. I tried to troubleshoot by adding a bit of code to the "MARS camera" script using the autoFocusRequested class. But no success.
     
  2. isoLABS

    isoLABS

    Joined:
    Mar 8, 2021
    Posts:
    2
    Thanks to this thread I just learnt about the "AR Camera Manager" component that can be added to the camera and has a toggle for auto focus. Problem solved.
     

    Attached Files:

    jmunozarUTech likes this.