Эх сурвалжийг харах

修正PC demo,自动调分辨率

ZIM 1 жил өмнө
parent
commit
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);
         }