胡佳骏 1 năm trước cách đây
mục cha
commit
933f38dbd7
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      Samples~/SDK/XRRGBCamera.cs

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

@@ -151,7 +151,9 @@ public class XRRGBCamera : SingletonMono<XRRGBCamera>
 
     public void stopCamera()
     {
-
-        RGBCamTexture.Stop();
+        if (RGBCamTexture != null && RGBCamTexture.isPlaying)
+        {
+            RGBCamTexture.Stop();
+        }
     }
 }