Unity怎么扫二维码回传数据
1、using System.Collections; 8 using System.Collections.Generic;

2、9 using UnityEngine; 10 using UnityEngine.UI; 11 using ZXing;

3、12 using ZXing.QrCode; 13 14 //二维码识别生成控制类 15 public class QRCode : MonoBehaviour 16 { 17 #region 扫描二维码 18

4、 //定义一个用于存储调用电脑或手机摄像头画面的RawImage 19 public RawImage m_cameraTexture; 20 21

5、 //摄像头实时显示的画面 22 private WebCamTexture m_webCameraTexture; 23 24

6、 //申请一个读取二维码的变量 25 private BarcodeReader m_barcodeRender=new BarcodeReader();

阅读量:30
阅读量:123
阅读量:124
阅读量:128
阅读量:131