Generating barcodes in Unity with ZXIng

So recently I had to implement a barcode generator in Unity. What I needed was:

  1. The ability to generate different types of barcodes (QR, Code 128, PDF 417 etc…)
  2. Get a Texture2D / Sprite from a piece of data that needed to be encoded.
  3. To do it efficiently and consistently

A few google searches later I found that the vastly popular ZXIng library has a .NET port, which offers a Unity optimized DLL, so I decided to try it out.

Continue reading “Generating barcodes in Unity with ZXIng”