I use Holographic Remoting Player to project the unity uwp program to HoloLens. I can get the unity picture on HoloLens, and I can move around to move the field of view, but the gesture cannot be detected in the unity release program.
I mean that gestures cannot be obtained in release , but gestures can be obtained when using the built-in connector in the unity editor.
gestureRecognizer = new GestureRecognizer();
gestureRecognizer.Tapped += RecognizerTapped;
gestureRecognizer.SetRecognizableGestures(GestureSettings.Tap | GestureSettings.DoubleTap | GestureSettings.Hold | GestureSettings.ManipulationTranslate);
gestureRecognizer.StartCapturingGestures();
InteractionManager.InteractionSourcePressed += InteractionSourcePressed;
void RecognizerTapped(TappedEventArgs args)
{
debugWindows .AddMessage ("tap "+args .tapCount);
}
void InteractionSourcePressed(InteractionSourcePressedEventArgs args)
{
debugWindows .AddMessage ("pressed");
}
that is my test code. and my custom connector is copy at unity docs.
when I used custom connector at anywhere (relase\editor), the "pressed" can printed , but "tap" and any gestureRecognizer's delegate canot printed.
when I used built-in connector at editor, both "pressed" and "tap" are printed.
I run it at many unity versions(2018.2, 2018.4, 2019.1-2019.3), get same result. Am I missing any key settings?