The type or namespace name `XR' does not exist in the namespace
wtf is happening today with OVR scripts ?
it was working perfectly yesterday and this morning.... now i get this error message from UnityEngine, and i fund nothing to help anywhere...
anyone has the this problem and solved it ?
Answer by robY86 · Oct 17, 2017 at 02:51 PM
Unity update 2017.1 to 2017.2
VR to XR rename.
The UnityEngine.VR. namespaces have been renamed to UnityEngine.XR.. All types with VR in their name have also been renamed to their XR versions. For example: UnityEngine.VR.VRSettings is now UnityEngine.XR.XRSettings, etc.
The API updater has been configured to automatically update existing scripts and assemblies to the new type names and namespaces. If don’t want to use the API updater, you can also manually update namespaces and types.
Namespace changes:
UnityEngine.VR -> UnityEngine.XR
UnityEngine.VR.WSA -> UnityEngine.XR.WSA
UnityEngine.VR.WSA.Input -> UnityEngine.XR.WSA.Input
UnityEngine.VR.WSA.Persistence -> UnityEngine.XR.WSA.Persistence
UnityEngine.VR.WSA.Sharing -> UnityEngine.XR.WSA.Sharing
UnityEngine.VR.WSA.WebCam -> UnityEngine.XR.WSA.WebCam
UnityEngine.VR type changes:
VRDevice -> XRDevice
VRNodeState -> XRNodeState
VRSettings -> XRSettings
VRStats -> XRStats
VRNode -> XRNode
All VR. profiler entries have also been changed to XR..
This answer doesn't make any sense. The compiler error is saying this because XR is already in the script, not VR. $$anonymous$$y script doesn't have anything with VR in it. It already says XR and judging by his title I would say he does too. Using Unity 2018.2.
lol. the error is talking about XR and you are saying about VR. why is the error appearing when I am already using XR? and the error comes up only when I build the game, it works fine in the editor. although it does not run it there.
Answer by TheOddSauce · Apr 06, 2018 at 01:45 PM
that's cool but it doesn't really answer much of anything
what can we do to solve this?