Skip to content

Commit 5e7b0fc

Browse files
committed
suppress the XR warning as per the Slack discussion, with a link to the team ticket
1 parent 3745677 commit 5e7b0fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/XR/TrackedPoseDriver.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,11 @@ protected virtual void Awake()
421421
#if UNITY_INPUT_SYSTEM_ENABLE_VR && ENABLE_VR
422422
if (HasStereoCamera(out var cameraComponent))
423423
{
424+
// The Unity 6.4+ replacement for this call has to be figured later
425+
// See https://jira.unity3d.com/browse/XR-7591
426+
#pragma warning disable CS0618
424427
UnityEngine.XR.XRDevice.DisableAutoXRCameraTracking(cameraComponent, true);
428+
#pragma warning restore CS0618
425429
}
426430
#endif
427431
}
@@ -458,7 +462,11 @@ protected virtual void OnDestroy()
458462
#if UNITY_INPUT_SYSTEM_ENABLE_VR && ENABLE_VR
459463
if (HasStereoCamera(out var cameraComponent))
460464
{
465+
// The Unity 6.4+ replacement for this call has to be figured later
466+
// See https://jira.unity3d.com/browse/XR-7591
467+
#pragma warning disable CS0618
461468
UnityEngine.XR.XRDevice.DisableAutoXRCameraTracking(cameraComponent, false);
469+
#pragma warning restore CS0618
462470
}
463471
#endif
464472
}

0 commit comments

Comments
 (0)