Search Unity

AR Foundation: Detect when the user has closed the camera with his hand

Discussion in 'AR' started by fotalik, Jul 5, 2019.

  1. fotalik

    fotalik

    Joined:
    Sep 23, 2017
    Posts:
    24
    Hello. It is necessary to determine the moment when the user closed the camera with his hand in order to perform a reset position action.

    Any help appreciated!

    Thanks.
     
  2. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    you could track light estimation and if the intensity dips below a small value (0.1f) then reset
     
    fotalik likes this.
  3. fotalik

    fotalik

    Joined:
    Sep 23, 2017
    Posts:
    24
    Ok, thanks, if anyone needs info about light estimation: