Type `UnityEngine.VR.WSA.Input.GestureRecognizer' does not contain a definition for `Tapped' and no

Hi all,
I am new to developing applications for Hololens and I'm starting from the basics.
Please forgive me for the very basic question!
I am trying to implement the second tutorial from 'Hologram 101E'.

While running the program, I am receiving an error 'Type UnityEngine.VR.WSA.Input.GestureRecognizer' does not contain a definition for Tapped' and no extension method Tapped' of type UnityEngine.VR.WSA.Input.GestureRecognizer' could be found. Are you missing an assembly reference?'

I tried changing recognizer.Tapped to .TappedEvent as suggested on some forums but no result is seen.
Any help would be appreciated. Thank you!


  • stepan_stulovstepan_stulov ✭✭✭
    edited February 2018

    Hey, @Amogh

    All WSA APIs travelled around namespaces a bit over recent Unity releases. GestureRecognizer class is to be found under UnityEngine.XR.WSA.Input namespace now. There is an old, deprecated TappedEvent event with a all the arguments passed separately and the new more .NET-like Tapped event that gets the more conventional EventArgs. I may be mixing the two up.

    Hope this helps.

    Building the future of holographic navigation. We're hiring.

Sign In or Register to comment.