소스 검색

修正PC demo,自动调分辨率

ZIM 1 년 전
부모
커밋
108b3bc747
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Assets/InfraredProject/WebCamera/Script/ZIM/ScreenLocate.cs

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

@@ -849,7 +849,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);
         }