Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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