// generate texture -- convert to sprite -- feed to image public void Encode_QR(string _URL) { Texture2D tx = QRCodeProcessor.Encode(_URL, 512, 512); Sprite sp = Sprite.Create(tx, new Rect(0, 0, 512, 512), new Vector2(0f, 0f)); _QRImage.sprite = sp; }
public static Texture2D Encode(string msg, int width, int height, ErrorCorrectionType type) { return(QRCodeProcessor.Encode(msg, width, height, ErrorCorrectionLevelList[(int)type], null)); }