Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question OpenXR GestureRecognizer for HoloLens2 (Unity 2020.3)

Discussion in 'AR' started by ChristopherGoe, Sep 14, 2021.

  1. ChristopherGoe

    ChristopherGoe

    Joined:
    Dec 14, 2017
    Posts:
    8
    Hi all,

    I recently upgraded my 2019.4 Unity HoloLens 2 Project to 2020.3.18f1 and after updating I always get the error:
    Assets\Scripts\TapInputHandler.cs(12,13): error CS0246: The type or namespace name 'GestureRecognizer' could not be found (are you missing a using directive or an assembly reference?)

    I looked up the Unity Documentation and the Script Reference GestureRecognizer is not available anymore in 2020.3. It was there in 2020.1: https://docs.unity3d.com/2020.1/Documentation/ScriptReference/XR.WSA.Input.GestureRecognizer.html
    However it is missing in 2020.3.I did not find a equivalent in any OpenXR Documentations either. Whats the 2020 Unity way to recognize Hand Gestures (such as Tap Gesture) with HoloLens?
     
  2. the_real_apoxol

    the_real_apoxol

    Unity Technologies

    Joined:
    Dec 18, 2020
    Posts:
    467
  3. fahruz

    fahruz

    Joined:
    Mar 5, 2020
    Posts:
    57