Skip to content

Instantly share code, notes, and snippets.

@yunojy
Last active June 3, 2016 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunojy/5b8413694ff2cfa4edfb142c8c9c465a to your computer and use it in GitHub Desktop.
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
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