Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

holographic remoting can not capture gestures at unity

Discussion in 'VR' started by tangjiangshan, May 28, 2020.

  1. tangjiangshan

    tangjiangshan

    Joined:
    Jun 7, 2018
    Posts:
    3
    I saw this https://forum.unity.com/threads/hololens-remoting-build-gestures-not-recognized.541444/, regrettably ,no results, so i ask a similar question again.

    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.
    Code (CSharp):
    1. gestureRecognizer = new GestureRecognizer();
    2. gestureRecognizer.Tapped += RecognizerTapped;
    3. gestureRecognizer.SetRecognizableGestures(GestureSettings.Tap | GestureSettings.DoubleTap | GestureSettings.Hold | GestureSettings.ManipulationTranslate);
    4. gestureRecognizer.StartCapturingGestures();
    5. InteractionManager.InteractionSourcePressed += InteractionSourcePressed;
    6.  
    7. void RecognizerTapped(TappedEventArgs args)
    8. {
    9.     debugWindows .AddMessage ("tap "+args .tapCount);
    10. }
    11.  
    12. void InteractionSourcePressed(InteractionSourcePressedEventArgs args)
    13. {
    14.     debugWindows .AddMessage ("pressed");
    15. }
    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?