Browse Source

更新雷鸟SDK

胡佳骏 1 year ago
parent
commit
c28a6b1229
2 changed files with 10 additions and 1 deletions
  1. 1 1
      Samples~/SDK/DeviceType.cs
  2. 9 0
      Samples~/SDK/XRRGBCamera.cs

+ 1 - 1
Samples~/SDK/DeviceType.cs

@@ -2,5 +2,5 @@
 
 public class DeviceType 
 {
-    public static string type = "Nreal";
+    public static string type = "LeiNiao";
 }

+ 9 - 0
Samples~/SDK/XRRGBCamera.cs

@@ -24,6 +24,15 @@ public class XRRGBCamera : SingletonMono<XRRGBCamera>
 
     public void playCamera(int w, int h)
     {
+        if (this.GetComponent<RawImage>() != null)
+        {
+            this.GetComponent<RawImage>().color = Color.black;
+        }
+        if (this.GetComponent<MeshRenderer>() != null)
+        {
+            this.GetComponent<MeshRenderer>().color = Color.black;
+        }
+        return;
         if (RGBCamTexture != null && RGBCamTexture.isPlaying)
         {
             RGBCamTexture.Stop();