Explorar o código

RGBCamTexture

胡佳骏 hai 1 ano
pai
achega
cd97770096
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Samples~/SDK/XRRGBCamera.cs

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

@@ -11,6 +11,7 @@ public class XRRGBCamera : SingletonMono<XRRGBCamera>
     public static XRRGBCamera Instance;
     public Texture CaptureImage;
     public WebCamTexture RGBCamTexture;
+    public bool isAuto = true;
     private void Awake()
     {
         Instance = this;
@@ -18,7 +19,9 @@ public class XRRGBCamera : SingletonMono<XRRGBCamera>
     private void Start()
     {
         // »ñÈ¡¿ÉÓõÄÉãÏñÍ·É豸
-        //playCamera(1280,720);
+        if(isAuto)
+        playCamera(1280,720);
+
     }
 
     public void playCamera(int w, int h)