Tanoda
DecodeByStaticPic.cs
Go to the documentation of this file.
1
using
UnityEngine
;
2
using
UnityEngine
.
UI
;
3
4
public
class
DecodeByStaticPic
: MonoBehaviour
5
{
6
public
Texture2D
targetTex
;
7
8
public
Text
resultText
;
9
10
// Use this for initialization
11
void
Start()
12
{
13
}
14
15
// Update is called once per frame
16
void
Update()
17
{
18
}
19
20
public
void
Decode
()
21
{
22
var resultStr =
QRCodeDecodeController
.
DecodeByStaticPic
(
targetTex
);
23
resultText
.text = resultStr;
24
}
25
}
DecodeByStaticPic
Definition:
DecodeByStaticPic.cs:5
DecodeByStaticPic.targetTex
Texture2D targetTex
Definition:
DecodeByStaticPic.cs:6
DecodeByStaticPic.resultText
Text resultText
Definition:
DecodeByStaticPic.cs:8
DecodeByStaticPic.Decode
void Decode()
Definition:
DecodeByStaticPic.cs:20
QRCodeDecodeController
Definition:
QRCodeDecodeController.cs:10
QRCodeDecodeController.DecodeByStaticPic
static string DecodeByStaticPic(Texture2D tex)
Decodes the by static picture.
Definition:
QRCodeDecodeController.cs:163
UnityEngine.UI
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
QRcode
Scripts
DecodeByStaticPic.cs
Generated by
1.9.3