slambb пре 1 година
родитељ
комит
7e35bb5af7
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      Assets/BowArrow/InfraredCamera/InfraredDemo.cs

+ 5 - 1
Assets/BowArrow/InfraredCamera/InfraredDemo.cs

@@ -860,7 +860,9 @@ public class InfraredDemo : MonoBehaviour
     {
         //SetResolutionNew 里面对应的下标
         int _resolutionIndex = 0;
-        switch ((int)resoutionNew.Get())
+
+#if UNITY_ANDROID
+    switch ((int)resoutionNew.Get())
         {
             case 10:
                 //Vector2(320, 240);
@@ -871,6 +873,8 @@ public class InfraredDemo : MonoBehaviour
                 _resolutionIndex = 1;
                 break;
         }
+#endif
+
         return _resolutionIndex;
     }
     /// <summary>