Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Low-light status?

Discussion in 'Handheld AR' started by magglemitch, Jun 24, 2020.

  1. magglemitch

    magglemitch

    Joined:
    Dec 8, 2013
    Posts:
    78
    Is there any part of the AR Foundation API to access a camera status? Wanting to display certain things say if the camera is detecting a low-light environment or things like that.
     
  2. KirillKuzyk

    KirillKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    112
    You can use ARSession.notTrackingReason to determine this.
     
  3. magglemitch

    magglemitch

    Joined:
    Dec 8, 2013
    Posts:
    78
    Thanks for your response! It seems to do the trick. I've noticed that I can't get this to change for a little while after the AR session has started. It stays on "None" for about a minute even in super low-light scenarios (covering the camera). Is this just a limitation of the tech?
     
unityunity