Search Unity

Steamvr error

Discussion in 'AR/VR (XR) Discussion' started by Storm-ace, Jul 18, 2018.

  1. Storm-ace

    Storm-ace

    Joined:
    Sep 3, 2015
    Posts:
    13
    Hi guys I have no clue how this fix this problem so I hope one of you can!
    Code (CSharp):
    1. Assets/SteamVR/Scripts/SteamVR.cs(22,35): error CS0619: `UnityEngine.VR.VRSettings' is obsolete: `VRSettings has been moved and renamed.  Use UnityEngine.XR.XRSettings instead (UnityUpgradable)'
    2.  
     
  2. Storm-ace

    Storm-ace

    Joined:
    Sep 3, 2015
    Posts:
    13
    I fix the problem:


    Code (CSharp):
    1.     public static bool usingNativeSupport
    2.     {
    3.         get { return UnityEngine.XR.XRDevice.GetNativePtr() != System.IntPtr.Zero; }
    4.     }