- Home /
OpenVR not detected on Compiled Build: Marks XRSettings.enabled as false.
I am having a problem in my project once I compile the build, it does not seem to detect the VR device connected. With a test script, I debugged whether the XRSettings's enabled property was set to true. On Editor mode it is debugged to true (first figure), however, it is set to false once the build is executed (second figure).
The debug script is this:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
using UnityEngine.UI;
public class TESTXRSettingsDebug : MonoBehaviour
{
[SerializeField] private Text feedback; /// <summary>Feedback.</summary>
private void Start()
{
feedback.text += XRSettings.enabled.ToString();
}
}
We have checked all the required settings for VR:
Additional Info:
Unity Version: 2018.2.3f1.
Steam VR's Package Version: 1.2.2 (It is outdated, but we have built already a couple of applications with it, so we are used to it).
Device: HTC Vive.
What was tried already:
Re-import (delete and import) SteamVR's package.
Re-import all assets.
Delete external packages (like Cinemachine).
Make builds just using SteamVR's assets and scenes.
Please let me know if there is more information I'd need to provide. Thanks in advance.
Your answer
![](https://koobas.hobune.stream/wayback/20220612192239im_/https://answers.unity.com/themes/thub/images/avi.jpg)