18 lines
406 B
C#
18 lines
406 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using NaughtyAttributes;
|
|
|
|
public class QRGenExample : MonoBehaviour {
|
|
|
|
public RawImage qrImageView;
|
|
public string inputText = "http://google.com";
|
|
|
|
[Button("Generate")]
|
|
public void Generate ()
|
|
{
|
|
Texture2D texture = new Texture2D (256, 256);
|
|
qrImageView.texture = texture;
|
|
// QRGen.Instance.create (inputText,(Texture2D)qrImageView.texture);
|
|
}
|
|
}
|