Explorar o código

修正PC demo,自动调分辨率

ZIM hai 1 ano
pai
achega
89ccc68bce

+ 1 - 1
Assets/InfraredProject/WebCamera/Script/ZIM/ScreenLocate.cs

@@ -845,7 +845,7 @@ public partial class ScreenLocate : MonoBehaviour
         if (DebugOnZIMDemo)
         {
             var webCam = GetComponent<ZIMWebCamera>();
-            GetComponent<ZIMWebCamera>().AdjustResolution(160, 120);
+            GetComponent<ZIMWebCamera>().AdjustResolution((int)EnterResolution.x, (int)EnterResolution.y);
             mUVCCameraInfo.SetSize(webCam.webCamTexture.width, webCam.webCamTexture.height);
         }