Skip to content

Instantly share code, notes, and snippets.

@AVatch
Created June 6, 2017 13:51
Show Gist options
  • Save AVatch/0d3f66a34603f5ea43d9aa65e5366e34 to your computer and use it in GitHub Desktop.
Save AVatch/0d3f66a34603f5ea43d9aa65e5366e34 to your computer and use it in GitHub Desktop.
Holotoolkit Event Subscription Example
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using HoloToolkit.Unity.InputModule;
using System;
public class HologramManager : MonoBehaviour, IInputClickHandler, IFocusable
{
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
}
// Called on Air Tap gesture
public void OnInputClicked(InputEventData eventData)
{
}
// Called on the Gaze Enter Event
public void OnFocusEnter()
{
}
// Called on the Gaze Exit Event
public void OnFocusExit()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment