1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using UnityEngine;
- using SC.XR.Unity;
- public class XRRGBCamera : SingletonMono<XRRGBCamera>
- {
- public bool isARCamrea;
- public Texture CaptureImage;
- public bool isAuto = true;
- private void Awake()
- {
- }
- private void Start()
- {
- if (isARCamrea)
- {
- }
- if(isAuto)
- playCamera(1280,720);
- }
- public void playCamera(int w, int h)
- {
- if (isARCamrea)
- {
- // Vuforia.VuforiaBehaviour.Instance.enabled = true;
- }
- else
- {
- }
- }
- Texture2D cameraTexture;
- public void Update()
- {
- }
- public void stopCamera()
- {
- }
- }
|