Search Unity

Question MRTK - Pinch recognition

Discussion in 'AR' started by fabi_s, Jun 9, 2021.

  1. fabi_s

    fabi_s

    Joined:
    Jan 25, 2021
    Posts:
    11
    Hello people.

    Is there a way to recognize the pinch gesture when using the hololens and MRTK?
    I want only to use the pinch as a boolean. Once recognised, the code gets a true (or false) and executes some other functions.

    I am using the PointerHandler but every time I make (and hold) a pinch gesture, the pointer attaches itself to the object and it gets in the way of the player. Any suggestions?

    Thanks, F.
     
  2. paulioms

    paulioms

    Joined:
    Jul 29, 2021
    Posts:
    15