Skip to content

Instantly share code, notes, and snippets.

@mmaletin
mmaletin / VRFrameDebuggerFix.cs
Created April 11, 2019 13:38
This script stops new VR poses from being applied when Unity editor is paused. It fixes frame debugger. Add it to camera and controllers, and any other tracked objects.
using UnityEngine;
#if UNITY_EDITOR
using Valve.VR;
using UnityEditor;
#endif
// This script stops new VR poses from being applied when Unity editor is paused.
// It fixes frame debugger. Add it to camera and controllers, and any other tracked objects.