MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Airtap\Select not working

Open krishnan-unni opened this issue 7 years ago • 26 comments

Overview

Airtap gesture is not getting fired

Expected Behavior

Airtap gesture should get fired on press of Space or Enter in emulator

Actual Behavior

Airtap gesture is not getting fired on press of Space or Enter in emulator

Steps to reproduce

Create a new project., Setup profiles from scratch. Create Action profile and add an action called Select with Digital Axis. Create Grip action with 6 DoF Create Controller profile and select Hololens. Assign the Select action to Air tap, Assign None to Spatial pointer, Grip action to Spatial Grip Create a Cube and add a Cube controller. Add a simple function OnTap to handle tap event. Add Pointer Click Handler script to the Cube and hook the OnTap function to the select Action. In the MRTKConfigurationProfile set the InputSystem type to MixedRealityInputSystem Run in Unity or Emulator. The Air tap gesture never gets triggered.

Unity Editor Version

2018.3.3f1 - 5f1

Mixed Reality Toolkit Release Version

mrtk_development

1

mrtk102

2

krishnan-unni avatar Feb 11 '19 05:02 krishnan-unni

@davidkline-ms @StephenHodgson Is this related to #3442 ? I'm not sure if it is a bug or a wrong configuration.

krishnan-unni avatar Feb 12 '19 03:02 krishnan-unni

Any help on this please?

krishnan-unni avatar Feb 13 '19 04:02 krishnan-unni

Strange! I haven't tested in the emulator. @davidkline-ms, do you have any insight into this?

keveleigh avatar Feb 13 '19 04:02 keveleigh

It's not working in the Unity Editor Game view either. I thought Point Click Handler is platform independent generic event. That is what I see after looking at the code. Attaching my additional services screenshot too

1

krishnan-unni avatar Feb 13 '19 04:02 krishnan-unni

@krishnan-unni - We chatted about #3428 and #3442 at our weekly shiproom. The main issue is getting a repro locally.

Are you on the slack channel? We'd love to start a conversation: https://holodevelopers.slack.com/messages/C2H4HT858

chbecker-ms avatar Feb 13 '19 17:02 chbecker-ms

Hi I am in the channel now. We can talk

krishnan-unni avatar Feb 13 '19 18:02 krishnan-unni

Strange! I haven't tested in the emulator. @davidkline-ms, do you have any insight into this?

I don't at this time. We should definitely investigate asap.

david-c-kline avatar Feb 14 '19 04:02 david-c-kline

Possibly related to #3456. We will continue to investigate and advise in both issues.

david-c-kline avatar Feb 20 '19 20:02 david-c-kline

I'm having the same issue on unity 2018.3.6f1

ZengerU avatar Feb 20 '19 20:02 ZengerU

Which emulator versions are people using?

keveleigh avatar Feb 21 '19 17:02 keveleigh

The one I am using is 10.0.17134.80. Thats the latest release build

krishnan-unni avatar Feb 21 '19 17:02 krishnan-unni

Hmm, I'm not able to repro this in either the 10.0.17134.80 emulator or the 10.0.17763.253 emulator. It might be worth trying the 17763 emulator, which can be found at https://docs.microsoft.com/en-us/windows/mixed-reality/hololens-emulator-archive image

I am able to repro it using Simulate in Editor inside the Unity Editor, as additionally reported by #3456: image

keveleigh avatar Feb 21 '19 18:02 keveleigh

@keveleigh Im gonna try in the latest build of emulator. Will update you ASAP. In the mean time could you please share a screen of your Hololens controller and action profile mapping too? Just want to make sure it is not a config issue

krishnan-unni avatar Feb 21 '19 19:02 krishnan-unni

Hi @keveleigh I just tried this with Unity 2018.3.6f1, Hololens emulator 10.0.17763.134. Updated the mrtk_development branch. Still the Air Tap is not working. I have committed it to my git repository here: https://github.com/krishnan-unni/MRTK-101 if you would like to check it.

krishnan-unni avatar Feb 21 '19 21:02 krishnan-unni

@krishnan-unni Can you check under Window -> Package Manager and see which version of the Windows Mixed Reality package you have is please? I believe there was an issue with 1.0.7 that should be fixed in 1.0.8.

keveleigh avatar Feb 22 '19 18:02 keveleigh

Also, my profile mappings are: image

keveleigh avatar Feb 22 '19 18:02 keveleigh

@keveleigh Mine is 1.0.8 too. The Solution you downloaded from my git. Is the Tap working when tried in your system? All profile config looks correct? Im running Unity 2018.3.6f1 now. and Upgraded the emulator too. The mapping looks fine. (Tap is a Digital action and a 6DoF action for the other two)

mrtk102

krishnan-unni avatar Feb 22 '19 19:02 krishnan-unni

@davidkline-ms @keveleigh Finally, I figured it out. Not sure if this is a bug or a config requirement. In the Input System Profile I had set Controller Visualization profile as None since it is for hololens, I don't have a controller to render. Although this was why Air Tap was not triggering. Once I placed the Default or a newly created Controller Visualization profile it started working. This one really sent me on a goose chase with days of code debug and trial and error attempts.

1

2

So the question is, is this a bug (sounds to me that way) or a configuration requirement. If it is a config requirement it would be better to clarify to the user in the documentation and why. I'm still combing through the code to see what is the connection between this profile and Input Click. In the mean time please let me know if I need to raise a new issue in case this is a bug.

krishnan-unni avatar Feb 23 '19 22:02 krishnan-unni

We believe the v2 beta 2 release has addressed this issue when using remoting and holographic simulation.

@krishnan-unni, if you believe you have found an issue please feel free to open a new bug. We are more than happy to help investigate and review.

Thanks!

david-c-kline avatar Feb 24 '19 01:02 david-c-kline

If you are still seeing this issue, please reactivate and we will investigate further.

Thanks!

david-c-kline avatar Feb 24 '19 01:02 david-c-kline