Conversation
|
This is mostly complete and ready for review, except for a single line of code. get { return XRDevice.GetNativePtr() != System.IntPtr.Zero; }Osmal from the Unity discord server guessed this is supposed to be a simple null check for the xr device, so I wrote this with the help of Unity docs: get { return UnityEngine.XR.InputDevices.GetDeviceAtXRNode(XRNode.Head) != null; }But I have a feeling that's not the same as the code above. References to docs I used: |
|
There are a few other potential replacements I found in docs: |
This PR aims to fix errors and warnings within Unity 6(LTS) while staying compatible with previous versions.