Skip to content

Instantly share code, notes, and snippets.

@russellweed
russellweed / VRManager.cs
Created January 3, 2019 06:07
Very rudimentary Unity VR SDK HMD Event notification junk
// DISCLAIMER: This was written late at night and is probably garbage.
// LICENSE: Do whatever you want with it. No attribution needed, but don't blame me if it doesn't work.
using UnityEngine;
using UnityEngine.XR;
public class VRManager : MonoBehaviour
{
public delegate void VRManagerEventHandler();
public static event VRManagerEventHandler LostFocus;