boB 21a16e637f Revert "retire Steam VR"
This reverts commit f627f1e1c3e7c010a70ba1eacfb7b3aab85ffd43.
2021-11-11 16:51:51 -05:00

18 lines
393 B
C#

using UnityEngine;
using System.Collections;
namespace Valve.VR
{
public class SteamVR_CameraHelper : MonoBehaviour
{
void Start()
{
#if OPENVR_XR_API && UNITY_LEGACY_INPUT_HELPERS
if (this.gameObject.GetComponent<UnityEngine.SpatialTracking.TrackedPoseDriver>() == null)
{
this.gameObject.AddComponent<UnityEngine.SpatialTracking.TrackedPoseDriver>();
}
#endif
}
}
}