codebude / QRCoder.Unity

An Unity extension for the popular QRCoder .NET library.
MIT License
48 stars 13 forks source link

Unable to import library #2

Open abhayraw1 opened 4 years ago

abhayraw1 commented 4 years ago

I followed the installation process and installed the package using NuGut. But Unity throws me an exception when include try to include the library. Here's the script

using QRCoder;
using QRCoder.Unity;

public class TestQr {
}

and here's the exception The type or namespace name 'Unity' does not exist in the namespace 'QRCoder' (are you missing an assembly reference?)

sigtrapgames commented 3 years ago

I also have this issue. In packages, QRCoder.Unity.1.0.3/lib is empty - NuGet doesn't seem to actually install the unity-specific DLL.

sigtrapgames commented 3 years ago

Workaround - download the repo and copy QRCoder.Unity/UnityQRCode.cs into your project manually.