胡佳骏 1 年之前
父節點
當前提交
f35f3a72ff
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      Samples~/SDK/XRRGBCamera.cs

+ 4 - 2
Samples~/SDK/XRRGBCamera.cs

@@ -9,14 +9,16 @@ public class XRRGBCamera : SingletonMono<XRRGBCamera>
 {
     public Texture CaptureImage;
     NRRGBCamTexture RGBCamTexture;
+    public bool isAuto = true;
     private void Start()
     {
 
         RGBCamTexture = new NRRGBCamTexture();
-        playCamera();
+        if (isAuto)
+            playCamera(1280, 720);
     }
 
-    public void playCamera()
+    public void playCamera(int w, int h)
     {
         if (RGBCamTexture != null)
         {