ShowRGBCamera.cs 300 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class ShowRGBCamera : MonoBehaviour
  6. {
  7. public RawImage img;
  8. // Update is called once per frame
  9. void Update()
  10. {
  11. img.texture = XRRGBCamera.Instance.CaptureImage;
  12. }
  13. }