胡佳骏 1 anno fa
parent
commit
933f38dbd7
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  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();
+        }
     }
 }