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.

Hold gesture to move object

Have a very basic question as I am a new bee.Please bare with me.
Like traditional windows programming I am trying to perform drag drop on hololens using hold gesture. I already watched 211 video and found lots of scripts like handamanger,interactible and gesturemanager and hence getting confused. I will lose focused object if gaze at some other place in my scene. For hold gesture, I just want to do drag drop which is not relying on gaze as I can gaze at other place while dragging. Could you please provide a simple script to achieve it.

Answers

  • @Learner

    If you set a reference to the gameobject, that you are gazing at and that you want to move, when you perform the initial tap to hold gesture you should then be able to move the same gameobject during your manipulation regardless of where you gaze afterwards.

    You can do it :-)
    Experiment a little and you will learn a lot.

    Windows Holographic User Group Redmond

    WinHUGR.org - - - - - - - - - - - - - - - - - - @WinHUGR
    WinHUGR YouTube Channel -- live streamed meetings

Sign In or Register to comment.