|
@@ -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();
|