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.
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
Hand Draggable script doesnt work anymore
I used to code with hand draggable on unity 5.5, but when I changed to 2017, it doesn't respond anymore.
When I simulate with the mouse i do get the desired response, but with the holographic emulator, or the hololens, it wont move.
Looking into the code I noticed it has something to do with the:
if (!eventData.InputSource.SupportsInputInfo(eventData.SourceId, SupportedInputInfo.Position))
{
// The input source must provide positional data for this script to be usable return; }
on the script, where the eventData.SourceId, forces the OnInputDown to return and not implement the dragging, does anyone know how to implement hand dragging on 2017?
0
Answers
Hi,
I am also facing the same issue and if you haven't got it worked, then I think I have a solution for you.
In ~\HoloToolkit\Input\Scripts\InputSources\InteractionInputSource.cs line #712, remove the second parameter of TryGetPosition. This will return true and will make the HandDraggable to work.
I am not very much sure on whether this is a bug with recent upgrade.
I raised this issue in GitHub. you can get the exact line of code in below link,
https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1286
Thanks,
Sathiya
Thanks,
Sathiya
@El_FY Which version of Unity you are using? I just got an update that for HoloLens we have to stick to 2017.1.x version.
Please see the below link for more details. There is no need to modify the scripts.
https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/1184
Thanks,
Sathiya