For the complete documentation index, see llms.txt. This page is also available as Markdown.

QR Code Generator

Enable checkout with QR codes with a no-dependency code generator.

The Tebex Unity SDK includes a QR code generator that can create a Texture2D of a Tebex checkout link.

No additional dependencies are required in your project to generate the code.

This enables customers to checkout with a mobile device by scanning a code shown in-game.

Displaying a QR Code

QR codes can be generated by using

which will create a Texture2D containing the QR code.

You can customize the scale and quietZone (whitespace) of the generated QR code.

The QR code generator will only create codes for URLs that direct to a Tebex basket.

Using with the In Game Cart

The in-game cart can be configured to enable or disable showing QR codes, per your requirements.

This can be toggled on/off via the Inspector on the GameObject where you have attached the InGameCart component.

Last updated