XRRGBCamera.cs 664 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using UnityEngine;
  2. using SC.XR.Unity;
  3. public class XRRGBCamera : SingletonMono<XRRGBCamera>
  4. {
  5. public bool isARCamrea;
  6. public Texture CaptureImage;
  7. public bool isAuto = true;
  8. private void Awake()
  9. {
  10. }
  11. private void Start()
  12. {
  13. if (isARCamrea)
  14. {
  15. }
  16. if(isAuto)
  17. playCamera(1280,720);
  18. }
  19. public void playCamera(int w, int h)
  20. {
  21. if (isARCamrea)
  22. {
  23. // Vuforia.VuforiaBehaviour.Instance.enabled = true;
  24. }
  25. else
  26. {
  27. }
  28. }
  29. Texture2D cameraTexture;
  30. public void Update()
  31. {
  32. }
  33. public void stopCamera()
  34. {
  35. }
  36. }