Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Getting gestures to work in Unity editor

Discussion in 'VR' started by jimweaver, Apr 21, 2018.

  1. jimweaver

    jimweaver

    Joined:
    Apr 17, 2018
    Posts:
    5
    I've created an empty GameObject in my scene, added a Canvas and a Panel on it, then a GazeGestureManager on it - similar to the origami demo. Does this work from the emulator in the Unity Editor? I really want to see this working for demo purposes.
     
  2. jimweaver

    jimweaver

    Joined:
    Apr 17, 2018
    Posts:
    5
    The more I read, I'm actually getting more and more discouraged about this. I do have speech recognition working in the Unity Editor game/play mode, but not keyboard nor gestures (e.g. "air tap"). Seems like maybe an Xbox controller might work, but that doesn't work for my needs. I need minimally to handle keyboard input in the Unity Editor.
     
  3. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    You can hotwire the Input.GetButtonDown system calling the tap event so your delegate gets called. It's a little hacky, but could work.