- Home /
Linux build error: The type or namespace name `VRSettings` does not exist in the namespace `UnityEngine.VR`
I'm running 5.5.1f1.
Here's a simplified version of the code in question:
using UnityEngine;
using UnityEngine.VR;
public class vr_test : MonoBehaviour
{
void Awake()
{
if(VRSettings.enabled && VRSettings.loadedDeviceName == "OpenVR")
{
...
The UnityEngine.VR.VRSettings class appears to be fully defined and safe to use: https://docs.unity3d.com/ScriptReference/VR.VRSettings.html
This project builds fine for Mac and Windows targets but fails when building for Linux targets. This failure occurs even with virtual reality support disabled in the project build settings.
Several third-party libraries in the project are throwing build errors because of this issue, including Kode80 Clouds and PlayWay Water. Anyone seen this before, or know what might be going on?
Your answer
Follow this Question
Related Questions
WebGL build not working on linux 1 Answer
Distribute terrain in zones 3 Answers
iPhone build is a blank scene 0 Answers
Lighting layers error 1 Answer
Android Build 0 Answers