Search Unity

Click to focus camera?

Discussion in 'AR' started by SpiderJones, Mar 1, 2019.

  1. SpiderJones

    SpiderJones

    Joined:
    Mar 29, 2014
    Posts:
    246
    Hi, I'm using UnityARCameraManager and UnityARVideo for image tracking on iOS. Is it possible to allow the user to click on the screen and have the camera focus on that point? Any tips?


    thanks!
     
  2. DeeForce

    DeeForce

    Unity Technologies

    Joined:
    Jul 16, 2018
    Posts:
    15
    Hello @SpiderJones !
    Were you able to figure this one out?

    We have a test scene in one of our public sample repos with a Auto Focus button that toggles between auto focus and fixed, are you able to attach a touch trigger to this to change between focus and fixed?
    Or are you looking for something different?
     
  3. SpiderJones

    SpiderJones

    Joined:
    Mar 29, 2014
    Posts:
    246
    Thank you for chiming in. I thought I read that when using Image Tracking in iOS you couldn't change the point that the camera focuses on. Which is what I originally wanted to do. I want to allow the user to click the screen and have the camera focus on a point while tracking an image. Is that possible?
     
  4. DeeForce

    DeeForce

    Unity Technologies

    Joined:
    Jul 16, 2018
    Posts:
    15
    That's a good question! I don't think there's a way to *specifically* pinpoint a camera focus, but I will verify this and get back here ASAP!
     
  5. SpiderJones

    SpiderJones

    Joined:
    Mar 29, 2014
    Posts:
    246
    thank you!
     
  6. DeeForce

    DeeForce

    Unity Technologies

    Joined:
    Jul 16, 2018
    Posts:
    15
    Unfortunately, it appears there is no API for setting the point of focus through ARKit ;;!
     
  7. SpiderJones

    SpiderJones

    Joined:
    Mar 29, 2014
    Posts:
    246
    Okay. Thank you for looking into this and getting back with me.