Last active
June 3, 2016 14:04
-
-
Save yunojy/5b8413694ff2cfa4edfb142c8c9c465a to your computer and use it in GitHub Desktop.
HoloLensでGestureのAir-TapのPressのみのサンプル。 https://developer.microsoft.com/en-us/windows/holographic/gestures_in_unity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.VR.WSA.Input; | |
public class HoloLensGestures : MonoBehaviour { | |
[SerializeField] | |
UnityEngine.Events.UnityEvent ev; | |
void Start() | |
{ | |
InteractionManager.SourcePressed += InteractionManager_SourcePressed; | |
} | |
// Air-Tap Pressed | |
void InteractionManager_SourcePressed(InteractionSourceState state) | |
{ | |
ev.Invoke(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment