Created
September 13, 2017 07:06
-
-
Save codingstyle/9ccb8ccb739c8856442b27d4075b27a7 to your computer and use it in GitHub Desktop.
Migration helper from VR to XR namespace in Unity 2017.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// See : https://docs.google.com/document/d/1PCqlBTPToO908mkeOTRGFlFk1HXY_N1zYsNJtaZdUQA/preview | |
// | |
#if UNITY_2017_2 | |
using UnityEngine.XR; | |
#else | |
using UnityEngine.VR; | |
using XRDevice = UnityEngine.VR.VRDevice; | |
using XRStats = UnityEngine.VR.VRStats; | |
using XRSettings = UnityEngine.VR.VRSettings; | |
using XRNode = UnityEngine.VR.VRNode; | |
using XRNodeState = UnityEngine.VR.VRNodeState; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A quick helper to add the new XR* types forUnity 5.x and Unity 2017.1, and help the future transition to Unity 2017.2.