Skip to content

Commit

Permalink
Simplify defines
Browse files Browse the repository at this point in the history
  • Loading branch information
KorneiDontsov committed Jan 18, 2023
1 parent 9c1a412 commit f8fda1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Unity3D/VRSupport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public void PeekCommand()

public object isVRSupported(List<object> param)
{
#if UNITY_3 || UNITY_4 || UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || UNITY_5_3
return false;
#elif UNITY_5 || UNITY_2017_1
return UnityEngine.VR.VRSettings.loadedDeviceName.Equals("CARDBOARD");
#if !UNITY_5_4_OR_NEWER
return false;
#elif !UNITY_2017_2_OR_NEWER
return UnityEngine.VR.VRSettings.loadedDeviceName.Equals("CARDBOARD");
#else
return UnityEngine.XR.XRSettings.loadedDeviceName.Equals("CARDBOARD");
#endif
Expand Down

0 comments on commit f8fda1d

Please sign in to comment.