using UnityEngine; using SC.XR.Unity; public class XRRGBCamera : SingletonMono { 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() { } }