public virtual void OnQRCode(Microsoft.MixedReality.QR.QRCode code, QREventType eventType)
 {
     Debug.Log("QRCodeListener  " + eventType);
     lock (pendingActions)
     {
         pendingActions.Enqueue(new ActionData(eventType, code));
     }
 }
Exemplo n.º 2
0
        public override void HandleQRCodeAdded(Microsoft.MixedReality.QR.QRCode qrCode)
        {
            // new QR code detected


            if (ExpectedQRCodeText == qrCode.Data)
            {
                the_qrcode = qrCode;
                onQRCode.Invoke();
            }
        }
        public override void HandleQRCodeAdded(Microsoft.MixedReality.QR.QRCode qrCode)
        {
            // new QR code detected
            if (info)
            {
                info.text = "\nNew QRCode : " + qrCode.Data;
            }

            GameObject qrCodeObject = Instantiate(qrCodePrefab, new Vector3(0, 0, 0), Quaternion.identity);

            qrCodeObject.GetComponent <SpatialGraphCoordinateSystem>().Id = qrCode.SpatialGraphNodeId;
            qrCodeObject.GetComponent <QRCodeTracking.QRCodeVisualController>().qrCode = qrCode;

            LaunchUri(qrCode.Data);
        }
 private string GetQRCodeText(Microsoft.MixedReality.QR.QRCode qrCode)
 {
     return(qrCode?.Data);
 }
 public virtual void HandleQRCodeRemoved(Microsoft.MixedReality.QR.QRCode code)
 {
 }
Exemplo n.º 6
0
 public ActionData(Type type, Microsoft.MixedReality.QR.QRCode qRCode) : this()
 {
     this.type = type;
     qrCode    = qRCode;
 }
 public override void HandleQRCodeRemoved(Microsoft.MixedReality.QR.QRCode qrCode)
 {
     // ignore removed
 }
 public override void HandleQRCodeUpdated(Microsoft.MixedReality.QR.QRCode qrCode)
 {
     // ignore updates
 }