胡佳骏 1 year ago
parent
commit
f35f3a72ff
1 changed files with 4 additions and 2 deletions
  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)
         {