Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Airtap anywhere to call up the menu

Hi everyone
I am currently facing another challenge that I would like to airtap anywhere on to call up the menu. I couldn't figure it out how to since in gesture manager had set the gesture will have to send the message to the object to trigger the action.
Does HoloLens come with some event listener that I could attach a script to the menu object and when it listened to a click event, it will set the UI to active?

Thanks.

Answers

  • Options
    Wolf,

    Try creating a new script file and instantiate a new gesture recognizer in the start method. Handle the tap event by calling up your menu.

    The trick is just ignoring the more sophisticated examples, in this case, since all you want is basically a simple "click" handler.

    James Ashley
    VS 2017 v5.3.3, Unity 2017.3.0f3, MRTK 2017.1.2, W10 17063
    Microsoft MVP, Freelance HoloLens/MR Developer
    www.imaginativeuniversal.com

Sign In or Register to comment.