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

Holotoolkit Input Module Holding, manipulation and navigation events not working

Hello everyone,

I was looking into the new Holotoolkit input system which came with unity 5.5 and I was happy to see how easy to use it is.

Everything works find when I want to implement some input interfaces such as IInputClickHandler, IInputHandler, IFocusable.. for instance.

However I can't figure out how to use the following events : Hold, Manipulation, Navigation. Even In the "Input test scene" of the Holotoolkit, the Debug.LogFormat are not working for them.

Someone could advice me about the proper way to use it ?

Thank you,
Vincent

Answers

  • Options

    @vincent,

    Definitely take a look at the HandDraggable script, which handles manipulations and implements most of those interfaces. It should guide you through how to best do the more complicated interactions. IInputClickHandler is really easy, by the way. Basically you need to drop an InputManager prefab and a cursor into your scene. Then when your gaze falls on an object that has an IInputClickHandler implementing behavior on it, IInputClick will get called.

    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

  • Options

    I concur with @james_ashley. I was able to implement all of the different interfaces without any issue just on my own.

  • Options
    CliwoCliwo
    edited January 2017

    Jesus I have exact same problem! Did you fix it?
    -> I found it, In the Unity Game Window, EditorHandsInput.cs Can't make Hold or manipulation events. So build on Hololens. you can see results

  • Options

    can you guys tell me where to get the hand's position?
    I tried
    Camera.main.transform.position + new Vector3(0, -0.2f, 0) - Camera.main.transform.forward * 0.2f

    from the hand draggable script...but is it right?

Sign In or Register to comment.