Closed qmatteoq closed 6 years ago
Currently the 2017.2 Dev branch is very behind the master. Try pulling the master merge to 2017.2 and test this. Thanks.
Is this still an issue post merge @StephenHodgson ? or can it now be closed
Needs to be tested and confirmed with master merge.
Hello, I've created a while ago a very simple app for HoloLens: you tap in the air and it creates a prefab in front of you, which then falls down and collides with the objects in the room thanks to Spatial Mapping. Now I'm trying to port this application to Mixed Reality in order to support both HoloLens and immersive headsets, so I did the following steps:
I didn't change anything related to how I've implemented the prefab creation with air tap. In the InputManager prefab in the scene I have a custom script, which implements the IInputClickHandler interface. Then, in the OnInputClicked() method, I just create a new instance of the prefab:
However, since I've ported the app to the new toolkit, when I execute the action (either with the gesture on the HoloLens or by pressing the joypad button on an immersive headset or in the Unity editor), my script isn't invoked anymore just once but four times. The result is quite easy to see: the prefab is created 4 times and, if I place a breakpoint in Visual Studio in the OnInputClicked() method and I choose to launch the app in the Unity editor, I can see the breakpoint being hit 4 times.
Am I doing something wrong or is there any breaking change I'm not aware of? Thanks!