Skip to content

Commit

Permalink
Fix warnings in 2020.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mtschoen-unity committed Aug 20, 2020
1 parent b64c73b commit 3acd7d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Runtime/Scripts/Core/VRView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ sealed class VRView
static bool s_ExistingSceneMainCameraEnabledState;

#if UNITY_EDITOR
#if !UNITY_2020_2_OR_NEWER
DrawCameraMode m_RenderMode = DrawCameraMode.Textured;
#endif

// To allow for alternate previews (e.g. smoothing)
public static Camera customPreviewCamera
Expand Down
4 changes: 3 additions & 1 deletion Runtime/Scripts/Proxies/Vive/ViveProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ sealed class ViveProxy : TwoHandedProxyBase

protected override void Awake()
{
#if !UNITY_2020_2_OR_NEWER
#if UNITY_2020_2_OR_NEWER
m_IsOculus = true; // TODO: Use XR Management
#else
#pragma warning disable 618
m_IsOculus = XRDevice.model.IndexOf("oculus", StringComparison.OrdinalIgnoreCase) >= 0;
#pragma warning restore 618
Expand Down

0 comments on commit 3acd7d9

Please sign in to comment.